Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(51)

Side by Side Diff: content/common/gpu/gpu_memory_tracking.cc

Issue 12017032: Add calls to EnsureGPUMemoryAvailable into GLES2DecoderImpl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/common/gpu/gpu_memory_tracking.h ('k') | gpu/command_buffer/common/gles2_cmd_utils.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « content/common/gpu/gpu_memory_tracking.h ('k') | gpu/command_buffer/common/gles2_cmd_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698