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

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: rebased 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
« no previous file with comments | « Source/platform/graphics/skia/OpaqueRegionSkia.h ('k') | Source/web/WebRuntimeFeatures.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/skia/OpaqueRegionSkia.cpp
diff --git a/Source/platform/graphics/skia/OpaqueRegionSkia.cpp b/Source/platform/graphics/skia/OpaqueRegionSkia.cpp
index c0a265f469e8efea6981fb7d9d3456f079c38e69..24c0369d2ee641c597367d4f4541d6d0d6364fa1 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.
« no previous file with comments | « Source/platform/graphics/skia/OpaqueRegionSkia.h ('k') | Source/web/WebRuntimeFeatures.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698