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

Unified Diff: cc/resources/shared_bitmap.cc

Issue 2535213002: [WIP] Add SharedMemoryTracker to dump base::SharedMemory usage
Patch Set: Implement buckets Created 3 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 side-by-side diff with in-line comments
Download patch
Index: cc/resources/shared_bitmap.cc
diff --git a/cc/resources/shared_bitmap.cc b/cc/resources/shared_bitmap.cc
index 2eb128af661f4d1e2f3fccc3a3e7368fed16cbea..3990b744e5d8ab07696d7ee023532f411c1dc4d1 100644
--- a/cc/resources/shared_bitmap.cc
+++ b/cc/resources/shared_bitmap.cc
@@ -15,8 +15,10 @@
namespace cc {
-SharedBitmap::SharedBitmap(uint8_t* pixels, const SharedBitmapId& id)
- : pixels_(pixels), id_(id) {}
+SharedBitmap::SharedBitmap(uint8_t* pixels,
+ base::SharedMemory* shared_memory,
+ const SharedBitmapId& id)
+ : pixels_(pixels), shared_memory_(shared_memory), id_(id) {}
SharedBitmap::~SharedBitmap() {
}

Powered by Google App Engine
This is Rietveld 408576698