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

Unified Diff: third_party/WebKit/Source/platform/graphics/BitmapImage.h

Issue 2054643003: Remove duplication of encoded image data (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address on hiroshige's review Created 4 years, 6 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: third_party/WebKit/Source/platform/graphics/BitmapImage.h
diff --git a/third_party/WebKit/Source/platform/graphics/BitmapImage.h b/third_party/WebKit/Source/platform/graphics/BitmapImage.h
index a530097e44b07c6caedeac5274efcd90fc794afa..c63eb452bb33adeb2c13f34e5b917b5bbcbfeb45 100644
--- a/third_party/WebKit/Source/platform/graphics/BitmapImage.h
+++ b/third_party/WebKit/Source/platform/graphics/BitmapImage.h
@@ -125,6 +125,9 @@ private:
// some room in the image cache.
void destroyDecodedData() override;
+ PassRefPtr<SharedBuffer> data() override;
+ SharedBuffer* cachedData();
scroggo_chromium 2016/06/20 19:00:43 Why does this return a raw pointer? It calls a me
hajimehoshi 2016/06/22 09:42:29 Done.
+
// Notifies observers that the memory footprint has changed.
void notifyMemoryChanged();

Powered by Google App Engine
This is Rietveld 408576698