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 "components/mus/gles2/gpu_memory_tracker.h" |
6 | 6 |
7 namespace mus { | 7 namespace gles2 { |
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 gpu::gles2::MemoryTracker::Pool pool) {} | 14 gpu::gles2::MemoryTracker::Pool pool) {} |
15 | 15 |
16 bool GpuMemoryTracker::EnsureGPUMemoryAvailable(size_t size_needed) { | 16 bool GpuMemoryTracker::EnsureGPUMemoryAvailable(size_t size_needed) { |
17 return true; | 17 return true; |
18 } | 18 } |
19 | 19 |
20 uint64_t GpuMemoryTracker::ClientTracingId() const { | 20 uint64_t GpuMemoryTracker::ClientTracingId() const { |
21 return 0u; | 21 return 0u; |
22 } | 22 } |
23 | 23 |
24 int GpuMemoryTracker::ClientId() const { | 24 int GpuMemoryTracker::ClientId() const { |
25 return 0; | 25 return 0; |
26 } | 26 } |
27 | 27 |
28 GpuMemoryTracker::~GpuMemoryTracker() {} | 28 GpuMemoryTracker::~GpuMemoryTracker() {} |
29 | 29 |
30 } // namespace mus | 30 } // namespace gles2 |
OLD | NEW |