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

Unified Diff: Source/core/fetch/ImageResource.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/core/clipboard/Pasteboard.cpp ('k') | Source/core/frame/ImageBitmap.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/fetch/ImageResource.cpp
diff --git a/Source/core/fetch/ImageResource.cpp b/Source/core/fetch/ImageResource.cpp
index 58d05a06429d25492c2109039d2d4155d3bc0b03..8ea6b5e448654581f6e167f4feff798ef99dbc91 100644
--- a/Source/core/fetch/ImageResource.cpp
+++ b/Source/core/fetch/ImageResource.cpp
@@ -493,7 +493,10 @@ bool ImageResource::currentFrameKnownToBeOpaque(const LayoutObject* renderer)
blink::Image* image = imageForRenderer(renderer);
if (image->isBitmapImage()) {
TRACE_EVENT1(TRACE_DISABLED_BY_DEFAULT("devtools.timeline"), "PaintImage", "data", InspectorPaintImageEvent::data(renderer, *this));
- image->nativeImageForCurrentFrame(); // force decode
+ SkBitmap dummy;
+ if (!image->bitmapForCurrentFrame(&dummy)) { // force decode
+ // We don't care about failures here, since we don't use "dummy"
+ }
}
return image->currentFrameKnownToBeOpaque();
}
« no previous file with comments | « Source/core/clipboard/Pasteboard.cpp ('k') | Source/core/frame/ImageBitmap.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698