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

Unified Diff: Source/platform/graphics/Canvas2DLayerBridge.cpp

Issue 166093005: Clear m_lastImageId for software compositor (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: test Created 6 years, 10 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 | « no previous file | Source/web/tests/Canvas2DLayerBridgeTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/Canvas2DLayerBridge.cpp
diff --git a/Source/platform/graphics/Canvas2DLayerBridge.cpp b/Source/platform/graphics/Canvas2DLayerBridge.cpp
index af5e9e4ab5bd3d6708490c711e9a6b633bbf0bb0..05b88daaf5d5cd147a57c2b9af14249608fa627c 100644
--- a/Source/platform/graphics/Canvas2DLayerBridge.cpp
+++ b/Source/platform/graphics/Canvas2DLayerBridge.cpp
@@ -343,10 +343,11 @@ bool Canvas2DLayerBridge::prepareMailbox(blink::WebExternalTextureMailbox* outMa
{
if (bitmap) {
// Using accelerated 2d canvas with software renderer, which
- // should only happen in tests that use fake graphics contexts.
- // In this case, we do not care about producing any results for
- // compositing.
+ // should only happen in tests that use fake graphics contexts
+ // or in Android WebView in software mode. In this case, we do
+ // not care about producing any results for this canvas.
m_canvas->silentFlush();
+ m_lastImageId = 0;
return false;
}
if (!isValid())
« no previous file with comments | « no previous file | Source/web/tests/Canvas2DLayerBridgeTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698