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

Unified Diff: Source/web/WebElement.cpp

Issue 1008243003: Nuke NativeImageSkia -- new version. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Convert BitmapImage::createFrameAtIndex() to Skia-style 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/web/WebElement.cpp
diff --git a/Source/web/WebElement.cpp b/Source/web/WebElement.cpp
index de6aba3201c9f682fa7c37200c7eaa10112aee52..1160c23754fe03d45150eae2b7f966fa11071093 100644
--- a/Source/web/WebElement.cpp
+++ b/Source/web/WebElement.cpp
@@ -158,11 +158,9 @@ WebImage WebElement::imageContents()
if (!image)
return WebImage();
- RefPtr<NativeImageSkia> bitmap = image->nativeImageForCurrentFrame();
- if (!bitmap)
- return WebImage();
-
- return bitmap->bitmap();
+ SkBitmap bitmap;
+ image->bitmapForCurrentFrame(&bitmap);
+ return WebImage(bitmap);
}
WebElement::WebElement(const PassRefPtrWillBeRawPtr<Element>& elem)

Powered by Google App Engine
This is Rietveld 408576698