OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "components/mus/gles2/gpu_memory_tracker.h" | 5 #include "services/ui/gles2/gpu_memory_tracker.h" |
6 | 6 |
7 namespace mus { | 7 namespace mus { |
8 | 8 |
9 GpuMemoryTracker::GpuMemoryTracker() {} | 9 GpuMemoryTracker::GpuMemoryTracker() {} |
10 | 10 |
11 void GpuMemoryTracker::TrackMemoryAllocatedChange( | 11 void GpuMemoryTracker::TrackMemoryAllocatedChange( |
12 size_t old_size, | 12 size_t old_size, |
13 size_t new_size) {} | 13 size_t new_size) {} |
14 | 14 |
15 bool GpuMemoryTracker::EnsureGPUMemoryAvailable(size_t size_needed) { | 15 bool GpuMemoryTracker::EnsureGPUMemoryAvailable(size_t size_needed) { |
(...skipping 11 matching lines...) Expand all Loading... |
27 uint64_t GpuMemoryTracker::ShareGroupTracingGUID() const { | 27 uint64_t GpuMemoryTracker::ShareGroupTracingGUID() const { |
28 // TODO(rjkroege): This should return a GUID which identifies the share group | 28 // TODO(rjkroege): This should return a GUID which identifies the share group |
29 // we are tracking memory for. This GUID should correspond to the GUID of the | 29 // we are tracking memory for. This GUID should correspond to the GUID of the |
30 // first command buffer in the share group. | 30 // first command buffer in the share group. |
31 return 0; | 31 return 0; |
32 } | 32 } |
33 | 33 |
34 GpuMemoryTracker::~GpuMemoryTracker() {} | 34 GpuMemoryTracker::~GpuMemoryTracker() {} |
35 | 35 |
36 } // namespace mus | 36 } // namespace mus |
OLD | NEW |