| OLD | NEW |
| (Empty) |
| 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. | |
| 4 | |
| 5 #ifndef SERVICES_UI_GLES2_GPU_MEMORY_TRACKER_H_ | |
| 6 #define SERVICES_UI_GLES2_GPU_MEMORY_TRACKER_H_ | |
| 7 | |
| 8 #include <stddef.h> | |
| 9 #include <stdint.h> | |
| 10 | |
| 11 #include "base/macros.h" | |
| 12 #include "gpu/command_buffer/service/memory_tracking.h" | |
| 13 | |
| 14 namespace ui { | |
| 15 | |
| 16 // TODO(fsamuel, rjkroege): This is a stub implementation that needs to be | |
| 17 // completed for proper memory tracking. | |
| 18 class GpuMemoryTracker : public gpu::gles2::MemoryTracker { | |
| 19 public: | |
| 20 GpuMemoryTracker(); | |
| 21 | |
| 22 // gpu::MemoryTracker implementation: | |
| 23 void TrackMemoryAllocatedChange( | |
| 24 size_t old_size, | |
| 25 size_t new_size) override; | |
| 26 bool EnsureGPUMemoryAvailable(size_t size_needed) override; | |
| 27 uint64_t ClientTracingId() const override; | |
| 28 int ClientId() const override; | |
| 29 uint64_t ShareGroupTracingGUID() const override; | |
| 30 | |
| 31 private: | |
| 32 ~GpuMemoryTracker() override; | |
| 33 | |
| 34 DISALLOW_COPY_AND_ASSIGN(GpuMemoryTracker); | |
| 35 }; | |
| 36 | |
| 37 } // namespace ui | |
| 38 | |
| 39 #endif // SERVICES_UI_GLES2_GPU_MEMORY_TRACKER_H_ | |
| OLD | NEW |