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

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: const Created 7 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: 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 82eee74a217189327593dd2297de33b9167bc29b..be53c297f35f4e4d21fad6782af5ffd92c0eb4c4 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) : false;
Peter Kasting 2013/04/23 21:43:20 Nit: Simpler: return m_actualDecoder && m_act
Alpha Left Google 2013/04/25 23:02:44 Done.
+}
+
+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

Powered by Google App Engine
This is Rietveld 408576698