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

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: Switch to skia-style API (return bool instead of SkBitmap) 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
« no previous file with comments | « Source/platform/graphics/ImageSource.h ('k') | Source/platform/graphics/StaticBitmapImage.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/ImageSource.cpp
diff --git a/Source/platform/graphics/ImageSource.cpp b/Source/platform/graphics/ImageSource.cpp
index e8c9ca0088d7a95f07e43ea47f20fb09fef5fbec..7fe50250be1c80711e6ead4d8f288e192dbcb9f8 100644
--- a/Source/platform/graphics/ImageSource.cpp
+++ b/Source/platform/graphics/ImageSource.cpp
@@ -107,11 +107,11 @@ 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;
+ return m_decoder->createFrameAtIndex(index, bitmap);
}
float ImageSource::frameDurationAtIndex(size_t index) const
« no previous file with comments | « Source/platform/graphics/ImageSource.h ('k') | Source/platform/graphics/StaticBitmapImage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698