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

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

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/ImageLayerChromiumTest.cpp ('k') | Source/platform/graphics/ImageSource.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/ImageSource.h
diff --git a/Source/platform/graphics/ImageSource.h b/Source/platform/graphics/ImageSource.h
index b9f81adecffc3dabb256a3d244627bfac3b2fffe..16fd1046cbf3284a8d71a2c2033c69c60563b9f4 100644
--- a/Source/platform/graphics/ImageSource.h
+++ b/Source/platform/graphics/ImageSource.h
@@ -32,13 +32,14 @@
#include "wtf/Noncopyable.h"
#include "wtf/OwnPtr.h"
+class SkBitmap;
+
namespace blink {
class DeferredImageDecoder;
class ImageOrientation;
class IntPoint;
class IntSize;
-class NativeImageSkia;
class SharedBuffer;
// This is a helper class used by BitmapImage only. If you need an image
@@ -93,7 +94,7 @@ public:
size_t frameCount() const;
- PassRefPtr<NativeImageSkia> createFrameAtIndex(size_t);
+ bool createFrameAtIndex(size_t, SkBitmap*);
float frameDurationAtIndex(size_t) const;
bool frameHasAlphaAtIndex(size_t) const; // Whether or not the frame actually used any alpha.
« no previous file with comments | « Source/platform/graphics/ImageLayerChromiumTest.cpp ('k') | Source/platform/graphics/ImageSource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698