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

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

Issue 1001703003: Take NativeImageSkia out behind the woodshed. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Make bitmapForCurrentFrame() return SkBitmap by value. 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..6d308d49ae95e04726a0a59d03d4ab0ff3861b3a 100644
--- a/Source/platform/graphics/ImageSource.cpp
+++ b/Source/platform/graphics/ImageSource.cpp
@@ -107,10 +107,10 @@ size_t ImageSource::frameCount() const
return count;
}
-PassRefPtr<NativeImageSkia> ImageSource::createFrameAtIndex(size_t index)
+SkBitmap ImageSource::createFrameAtIndex(size_t index)
{
if (!m_decoder)
- return nullptr;
+ return SkBitmap();
return m_decoder->createFrameAtIndex(index);
}

Powered by Google App Engine
This is Rietveld 408576698