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

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

Issue 413313002: Treat calls to CanvasRenderingContext2D.clearRect as operations that clear the canvas (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: regionTrackingEnabled Created 6 years, 5 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/platform/graphics/OpaqueRectTrackingContentLayerDelegate.cpp
diff --git a/Source/platform/graphics/OpaqueRectTrackingContentLayerDelegate.cpp b/Source/platform/graphics/OpaqueRectTrackingContentLayerDelegate.cpp
index ce1e7e8a9b2b72de15c3fec6b252c4de19de731b..5d37bf26821315cd59c5911e9fe1f6e460b97550 100644
--- a/Source/platform/graphics/OpaqueRectTrackingContentLayerDelegate.cpp
+++ b/Source/platform/graphics/OpaqueRectTrackingContentLayerDelegate.cpp
@@ -58,7 +58,7 @@ void OpaqueRectTrackingContentLayerDelegate::paintContents(
GraphicsContext context(canvas,
contextStatus == blink::WebContentLayerClient::GraphicsContextEnabled ? GraphicsContext::NothingDisabled : GraphicsContext::FullyDisabled);
- context.setTrackOpaqueRegion(!m_opaque);
+ context.setRegionTrackingMode(m_opaque ? GraphicsContext::RegionTrackingDisabled : GraphicsContext::RegionTrackingOpaque);
context.setCertainlyOpaque(m_opaque);
context.setShouldSmoothFonts(canPaintLCDText);
« no previous file with comments | « Source/platform/graphics/GraphicsContextTest.cpp ('k') | Source/platform/graphics/RecordingImageBufferSurface.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698