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

Unified Diff: content/common/gpu/gpu_memory_tracking.h

Issue 11516014: Track managed memory usage in the command buffer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix unit test compile error Created 8 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/gpu/gpu_memory_manager_unittest.cc ('k') | gpu/command_buffer/service/buffer_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/gpu_memory_tracking.h
diff --git a/content/common/gpu/gpu_memory_tracking.h b/content/common/gpu/gpu_memory_tracking.h
index 79bea78f5c3c307a208aa86d156b49fe14c035c6..d5f415937b8b3e0e1905eb020658e0006f04f64e 100644
--- a/content/common/gpu/gpu_memory_tracking.h
+++ b/content/common/gpu/gpu_memory_tracking.h
@@ -29,7 +29,10 @@ class GpuMemoryTrackingGroup {
~GpuMemoryTrackingGroup() {
memory_manager_->RemoveTrackingGroup(this);
}
- void TrackMemoryAllocatedChange(size_t old_size, size_t new_size) {
+ void TrackMemoryAllocatedChange(
+ size_t old_size,
+ size_t new_size,
+ gpu::gles2::MemoryTracker::Pool tracking_pool) {
if (old_size < new_size) {
size_t delta = new_size - old_size;
size_ += delta;
@@ -39,7 +42,8 @@ class GpuMemoryTrackingGroup {
DCHECK(size_ >= delta);
size_ -= delta;
}
- memory_manager_->TrackMemoryAllocatedChange(old_size, new_size);
+ memory_manager_->TrackMemoryAllocatedChange(
+ old_size, new_size, tracking_pool);
}
base::ProcessId GetPid() const {
return pid_;
« no previous file with comments | « content/common/gpu/gpu_memory_manager_unittest.cc ('k') | gpu/command_buffer/service/buffer_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698