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

Unified Diff: third_party/WebKit/Source/platform/graphics/FrameData.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: Nits related to review #31 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/FrameData.h
diff --git a/third_party/WebKit/Source/platform/graphics/FrameData.h b/third_party/WebKit/Source/platform/graphics/FrameData.h
index e64c9318bd54efa3417f2bfbbe91dfd52d9bc8f2..8324f83d5e5f3f71476b439cbfa931d71fc3e3a1 100644
--- a/third_party/WebKit/Source/platform/graphics/FrameData.h
+++ b/third_party/WebKit/Source/platform/graphics/FrameData.h
@@ -29,7 +29,6 @@
#define FrameData_h
#include "platform/graphics/ImageOrientation.h"
-#include "third_party/skia/include/core/SkImage.h"
#include "wtf/Allocator.h"
#include "wtf/Noncopyable.h"
#include "wtf/RefPtr.h"
@@ -46,9 +45,8 @@ public:
// Clear the cached image data on the frame, and (optionally) the metadata.
// Returns whether there was cached image data to clear.
- bool clear(bool clearMetadata);
+ void clear(bool clearMetadata);
- RefPtr<SkImage> m_frame;
ImageOrientation m_orientation;
float m_duration;
bool m_haveMetadata : 1;

Powered by Google App Engine
This is Rietveld 408576698