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

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

Issue 1925533003: High CPU and increased memory usage fix for high-res (GIF, WEBP...) animations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing. DCHECK. Thanks fmalita@. Created 4 years, 7 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/Image.h
diff --git a/third_party/WebKit/Source/platform/graphics/Image.h b/third_party/WebKit/Source/platform/graphics/Image.h
index e5ee4442ed44c225e9e6673f4fd2ef9e4d2fa676..e281591f6753c575eeb1ac3e3905f42231a71f96 100644
--- a/third_party/WebKit/Source/platform/graphics/Image.h
+++ b/third_party/WebKit/Source/platform/graphics/Image.h
@@ -106,7 +106,7 @@ public:
virtual String filenameExtension() const { return String(); } // null string if unknown
- virtual void destroyDecodedData(bool destroyAll) = 0;
+ virtual void destroyDecodedData() = 0;
SharedBuffer* data() { return m_encodedImageData.get(); }
@@ -114,7 +114,6 @@ public:
// It will automatically pause once all observers no longer want to render the image anywhere.
enum CatchUpAnimation { DoNotCatchUp, CatchUp };
virtual void startAnimation(CatchUpAnimation = CatchUp) { }
- virtual void stopAnimation() {}
virtual void resetAnimation() {}
// True if this image can potentially animate.

Powered by Google App Engine
This is Rietveld 408576698