cygprofile: increase timeouts to allow showing web contents
[chromium-blink-merge.git] / components / view_manager / gles2 / gpu_memory_tracker.h
blob7300472aabd79e4f094aa417b6b9b51773cbec6b
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef COMPONENTS_VIEW_MANAGER_GLES2_GPU_MEMORY_TRACKER_H_
6 #define COMPONENTS_VIEW_MANAGER_GLES2_GPU_MEMORY_TRACKER_H_
8 #include "gpu/command_buffer/service/memory_tracking.h"
10 namespace gles2 {
12 // TODO(fsamuel, rjkroege): This is a stub implementation that needs to be
13 // completed for proper memory tracking.
14 class GpuMemoryTracker : public gpu::gles2::MemoryTracker {
15 public:
16 GpuMemoryTracker();
18 // gpu::gles2::MemoryTracker implementation:
19 void TrackMemoryAllocatedChange(
20 size_t old_size,
21 size_t new_size,
22 gpu::gles2::MemoryTracker::Pool pool) override;
23 bool EnsureGPUMemoryAvailable(size_t size_needed) override;
24 uint64_t ClientTracingId() const override;
25 int ClientId() const override;
27 private:
28 ~GpuMemoryTracker() override;
30 DISALLOW_COPY_AND_ASSIGN(GpuMemoryTracker);
33 } // namespace gles2
35 #endif // COMPONENTS_VIEW_MANAGER_GLES2_GPU_MEMORY_TRACKER_H_