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

Unified Diff: third_party/WebKit/Source/platform/graphics/StaticBitmapImage.h

Issue 1460653003: StaticImageBitmap::create should return PassRefPtr<StaticImageBitmap> (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 | « no previous file | third_party/WebKit/Source/platform/graphics/StaticBitmapImage.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/graphics/StaticBitmapImage.h
diff --git a/third_party/WebKit/Source/platform/graphics/StaticBitmapImage.h b/third_party/WebKit/Source/platform/graphics/StaticBitmapImage.h
index 6f5bb2c69d85552f15f72f99581e2b32915054dd..0150c0e5fd384309cad136cd9d825e72dc426a0c 100644
--- a/third_party/WebKit/Source/platform/graphics/StaticBitmapImage.h
+++ b/third_party/WebKit/Source/platform/graphics/StaticBitmapImage.h
@@ -15,13 +15,13 @@ public:
bool currentFrameIsComplete() override { return true; }
- static PassRefPtr<Image> create(PassRefPtr<SkImage>);
+ static PassRefPtr<StaticBitmapImage> create(PassRefPtr<SkImage>);
virtual void destroyDecodedData(bool destroyAll) { }
virtual bool currentFrameKnownToBeOpaque();
virtual IntSize size() const;
void draw(SkCanvas*, const SkPaint&, const FloatRect& dstRect, const FloatRect& srcRect, RespectImageOrientationEnum, ImageClampingMode) override;
- PassRefPtr<SkImage> imageForCurrentFrame() override { return m_image; }
+ PassRefPtr<SkImage> imageForCurrentFrame() override;
protected:
StaticBitmapImage(PassRefPtr<SkImage>);
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/graphics/StaticBitmapImage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698