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

Unified Diff: Source/core/platform/graphics/ImageSource.cpp

Issue 15350006: Decode GIF image frames on demand. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 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: Source/core/platform/graphics/ImageSource.cpp
diff --git a/Source/core/platform/graphics/ImageSource.cpp b/Source/core/platform/graphics/ImageSource.cpp
index 4a43d3c685f3d648a7d03c64f24a8af8a90be33a..5d41389cfd5452ebedad1c2e1733ebdc63f77eef 100644
--- a/Source/core/platform/graphics/ImageSource.cpp
+++ b/Source/core/platform/graphics/ImageSource.cpp
@@ -54,11 +54,11 @@ ImageSource::~ImageSource()
clear(true);
}
-void ImageSource::clear(bool destroyAll, size_t clearBeforeFrame, SharedBuffer* data, bool allDataReceived)
+void ImageSource::clear(bool destroyAll, size_t clearExceptFrame, SharedBuffer* data, bool allDataReceived)
{
if (!destroyAll) {
if (m_decoder)
- m_decoder->clearFrameBufferCache(clearBeforeFrame);
+ m_decoder->clearFrameBufferCache(clearExceptFrame);
return;
}

Powered by Google App Engine
This is Rietveld 408576698