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

Unified Diff: third_party/WebKit/Source/platform/graphics/DeferredImageDecoder.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: Created 4 years, 8 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/DeferredImageDecoder.h
diff --git a/third_party/WebKit/Source/platform/graphics/DeferredImageDecoder.h b/third_party/WebKit/Source/platform/graphics/DeferredImageDecoder.h
index 3338d4aa8ad1e5039efc98d14e95b2c39d9237ad..e5ac726c494f4d29b27f224314bd51e057121553 100644
--- a/third_party/WebKit/Source/platform/graphics/DeferredImageDecoder.h
+++ b/third_party/WebKit/Source/platform/graphics/DeferredImageDecoder.h
@@ -42,7 +42,7 @@ namespace blink {
class ImageFrameGenerator;
class SharedBuffer;
-struct FrameData;
+struct DeferredFrameData;
class PLATFORM_EXPORT DeferredImageDecoder final {
WTF_MAKE_NONCOPYABLE(DeferredImageDecoder);
@@ -100,7 +100,7 @@ private:
bool m_canYUVDecode;
// Carries only frame state and other information. Does not carry bitmap.
- Vector<FrameData> m_frameData;
+ Vector<DeferredFrameData> m_frameData;
RefPtr<ImageFrameGenerator> m_frameGenerator;
static bool s_enabled;

Powered by Google App Engine
This is Rietveld 408576698