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

Unified Diff: Source/core/platform/graphics/chromium/DeferredImageDecoder.cpp

Issue 14317005: Checking if frame is complete and access duration doesn't need a decode (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: done 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/chromium/DeferredImageDecoder.cpp
diff --git a/Source/core/platform/graphics/chromium/DeferredImageDecoder.cpp b/Source/core/platform/graphics/chromium/DeferredImageDecoder.cpp
index 870fb3da6281be170a49ebd5551c38e4f6f1fe7d..d681e830b1b41b5b2c15a4ff818fec4f57e5263e 100644
--- a/Source/core/platform/graphics/chromium/DeferredImageDecoder.cpp
+++ b/Source/core/platform/graphics/chromium/DeferredImageDecoder.cpp
@@ -185,6 +185,18 @@ bool DeferredImageDecoder::frameHasAlphaAtIndex(size_t index) const
return m_actualDecoder ? m_actualDecoder->frameHasAlphaAtIndex(index) : m_frameGenerator->hasAlpha();
}
+bool DeferredImageDecoder::frameIsCompleteAtIndex(size_t index) const
+{
+ // TODO: Implement this for deferred decoding.
+ return m_actualDecoder && m_actualDecoder->frameIsCompleteAtIndex(index);
+}
+
+float DeferredImageDecoder::frameDurationAtIndex(size_t index) const
+{
+ // TODO: Implement this for deferred decoding.
+ return m_actualDecoder ? m_actualDecoder->frameDurationAtIndex(index) : 0;
+}
+
unsigned DeferredImageDecoder::frameBytesAtIndex(size_t index) const
{
// If frame decoding is deferred then it is not managed by MemoryCache
« no previous file with comments | « Source/core/platform/graphics/chromium/DeferredImageDecoder.h ('k') | Source/core/platform/image-decoders/ImageDecoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698