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

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

Issue 1008243003: Nuke NativeImageSkia -- new version. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Convert BitmapImage::createFrameAtIndex() to Skia-style Created 5 years, 9 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/platform/graphics/ImageSource.cpp
diff --git a/Source/platform/graphics/ImageSource.cpp b/Source/platform/graphics/ImageSource.cpp
index e8c9ca0088d7a95f07e43ea47f20fb09fef5fbec..adaeeca00de91f3a727cd251dd039835668a8985 100644
--- a/Source/platform/graphics/ImageSource.cpp
+++ b/Source/platform/graphics/ImageSource.cpp
@@ -107,11 +107,12 @@ size_t ImageSource::frameCount() const
return count;
}
-PassRefPtr<NativeImageSkia> ImageSource::createFrameAtIndex(size_t index)
+bool ImageSource::createFrameAtIndex(size_t index, SkBitmap* bitmap)
{
if (!m_decoder)
- return nullptr;
- return m_decoder->createFrameAtIndex(index);
+ return false;
+ *bitmap = m_decoder->createFrameAtIndex(index);
+ return true;
}
float ImageSource::frameDurationAtIndex(size_t index) const

Powered by Google App Engine
This is Rietveld 408576698