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

Unified Diff: Source/web/WebImageDecoder.cpp

Issue 1008243003: Nuke NativeImageSkia -- new version. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add more WARN_UNUSED_RETURN goodness 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/web/WebElement.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebImageDecoder.cpp
diff --git a/Source/web/WebImageDecoder.cpp b/Source/web/WebImageDecoder.cpp
index 28a2dc3ed1f20a67858e772463b4486ef9cf3b70..e44c2565ebeb528d3c2dfc18cc3cd930184b3e05 100644
--- a/Source/web/WebImageDecoder.cpp
+++ b/Source/web/WebImageDecoder.cpp
@@ -108,8 +108,7 @@ WebImage WebImageDecoder::getFrameAtIndex(int index = 0) const
ImageFrame* const frameBuffer = m_private->frameBufferAtIndex(index);
if (!frameBuffer)
return WebImage();
- RefPtr<NativeImageSkia> image = frameBuffer->asNewNativeImage();
- return WebImage(image->bitmap());
+ return WebImage(frameBuffer->bitmap());
}
} // namespace blink
« no previous file with comments | « Source/web/WebElement.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698