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

Unified Diff: Source/platform/graphics/GraphicsContext.h

Issue 413313002: Treat calls to CanvasRenderingContext2D.clearRect as operations that clear the canvas (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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/GraphicsContext.h
diff --git a/Source/platform/graphics/GraphicsContext.h b/Source/platform/graphics/GraphicsContext.h
index 3c59c53735b1dc12a23af0e8442bcbdad118148b..87f67004118444c08b5d3fa29588619755861275 100644
--- a/Source/platform/graphics/GraphicsContext.h
+++ b/Source/platform/graphics/GraphicsContext.h
@@ -224,6 +224,7 @@ public:
// The opaque region is empty until tracking is turned on.
// It is never clerared by the context.
void setTrackOpaqueRegion(bool track) { m_trackOpaqueRegion = track; }
+ void setTreatOverwriteAsOpaque(bool value) { m_opaqueRegion.setTreatOverwriteAsOpaque(value); }
Stephen White 2014/07/25 19:29:06 As discussed, let's make this a setter that specif
const OpaqueRegionSkia& opaqueRegion() const { return m_opaqueRegion; }
// The text region is empty until tracking is turned on.

Powered by Google App Engine
This is Rietveld 408576698