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

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

Issue 1327793003: Move WebCache memory dump provider to blink for sub-allocation edges. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Moving branch. Created 5 years, 3 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 61e0594a8072ee8dd424acb9ad668b8ebfd7add7..06d879aba14be1d6134f29fd34070a465c44f20b 100644
--- a/third_party/WebKit/Source/platform/graphics/BitmapImage.h
+++ b/third_party/WebKit/Source/platform/graphics/BitmapImage.h
@@ -36,6 +36,7 @@
#include "platform/graphics/ImageOrientation.h"
#include "platform/graphics/ImageSource.h"
#include "platform/image-decoders/ImageAnimation.h"
+#include "public/platform/WebMemoryDumpProvider.h"
#include "wtf/Forward.h"
#include "wtf/OwnPtr.h"
@@ -43,7 +44,7 @@ namespace blink {
template <typename T> class Timer;
-class PLATFORM_EXPORT BitmapImage final : public Image {
+class PLATFORM_EXPORT BitmapImage final : public Image, public WebMemoryDumpProvider {
friend class GeneratedImage;
friend class CrossfadeGeneratedImage;
friend class GradientGeneratedImage;
@@ -95,6 +96,9 @@ public:
ImageOrientation currentFrameOrientation();
+ // Overridden from WebMemoryDumpProvider.
+ bool onMemoryDump(WebMemoryDumpLevelOfDetail, WebProcessMemoryDump*) override;
+
private:
friend class BitmapImageTest;

Powered by Google App Engine
This is Rietveld 408576698