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

Unified Diff: Source/core/frame/ImageBitmap.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/core/frame/ImageBitmap.cpp
diff --git a/Source/core/frame/ImageBitmap.cpp b/Source/core/frame/ImageBitmap.cpp
index 14c58ad575d0b86a9c9a2dda48082d9a8523002b..3f39481f79a3909c1ea31fbb6e7d9b96d93fd31a 100644
--- a/Source/core/frame/ImageBitmap.cpp
+++ b/Source/core/frame/ImageBitmap.cpp
@@ -32,8 +32,8 @@ static inline PassRefPtr<Image> cropImage(Image* image, const IntRect& cropRect)
return nullptr;
SkBitmap cropped;
- image->nativeImageForCurrentFrame()->bitmap().extractSubset(&cropped, intersectRect);
- return BitmapImage::create(NativeImageSkia::create(cropped));
+ image->bitmapForCurrentFrame().extractSubset(&cropped, intersectRect);
+ return BitmapImage::create(cropped);
}
ImageBitmap::ImageBitmap(HTMLImageElement* image, const IntRect& cropRect)

Powered by Google App Engine
This is Rietveld 408576698