| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "content/common/gpu/gpu_memory_tracking.h" | 5 #include "content/common/gpu/gpu_memory_tracking.h" |
| 6 | 6 |
| 7 #include "content/common/gpu/gpu_memory_manager.h" | 7 #include "content/common/gpu/gpu_memory_manager.h" |
| 8 | 8 |
| 9 namespace content { | 9 namespace content { |
| 10 | 10 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 } | 24 } |
| 25 | 25 |
| 26 void GpuMemoryTrackingGroup::TrackMemoryAllocatedChange( | 26 void GpuMemoryTrackingGroup::TrackMemoryAllocatedChange( |
| 27 size_t old_size, | 27 size_t old_size, |
| 28 size_t new_size, | 28 size_t new_size, |
| 29 gpu::gles2::MemoryTracker::Pool tracking_pool) { | 29 gpu::gles2::MemoryTracker::Pool tracking_pool) { |
| 30 memory_manager_->TrackMemoryAllocatedChange( | 30 memory_manager_->TrackMemoryAllocatedChange( |
| 31 this, old_size, new_size, tracking_pool); | 31 this, old_size, new_size, tracking_pool); |
| 32 } | 32 } |
| 33 | 33 |
| 34 bool GpuMemoryTrackingGroup::EnsureGPUMemoryAvailable(size_t size_needed) { |
| 35 return memory_manager_->EnsureGPUMemoryAvailable(size_needed); |
| 36 } |
| 37 |
| 38 |
| 34 } // namespace content | 39 } // namespace content |
| OLD | NEW |