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

Unified Diff: Source/platform/graphics/skia/OpaqueRegionSkia.cpp

Issue 379253002: Initial implementation of display list backed 2D canvases (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: use WebRuntimeFeatures 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/skia/OpaqueRegionSkia.cpp
diff --git a/Source/platform/graphics/skia/OpaqueRegionSkia.cpp b/Source/platform/graphics/skia/OpaqueRegionSkia.cpp
index d0976723bd9300bf85e644363eaec4c7e54ef677..6f365984aa702656cdfd31163c475b2ee712a2fe 100644
--- a/Source/platform/graphics/skia/OpaqueRegionSkia.cpp
+++ b/Source/platform/graphics/skia/OpaqueRegionSkia.cpp
@@ -44,6 +44,12 @@ OpaqueRegionSkia::OpaqueRegionSkia()
{
}
+void OpaqueRegionSkia::reset()
+{
+ ASSERT(m_canvasLayerStack.isEmpty());
+ m_opaqueRect = SkRect::MakeEmpty();
+}
+
IntRect OpaqueRegionSkia::asRect() const
{
// Returns the largest enclosed rect.

Powered by Google App Engine
This is Rietveld 408576698