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

Unified Diff: Source/platform/image-decoders/ImageFrame.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/image-decoders/ImageFrame.h ('k') | Source/web/DragClientImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/image-decoders/ImageFrame.cpp
diff --git a/Source/platform/image-decoders/ImageFrame.cpp b/Source/platform/image-decoders/ImageFrame.cpp
index 009bbb4d71d4ccd4ed27a38003082601cc74e401..ace907572aa84552b2ab15056d57a1f2d67d83e8 100644
--- a/Source/platform/image-decoders/ImageFrame.cpp
+++ b/Source/platform/image-decoders/ImageFrame.cpp
@@ -114,9 +114,9 @@ bool ImageFrame::setSize(int newWidth, int newHeight)
return true;
}
-PassRefPtr<NativeImageSkia> ImageFrame::asNewNativeImage() const
+const SkBitmap& ImageFrame::bitmap() const
{
- return NativeImageSkia::create(m_bitmap);
+ return m_bitmap;
}
bool ImageFrame::hasAlpha() const
« no previous file with comments | « Source/platform/image-decoders/ImageFrame.h ('k') | Source/web/DragClientImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698