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

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

Issue 293963009: Fixing GraphicsContext state checks to support oilpan (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: removed change to test expectations Created 6 years, 7 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/core/html/canvas/CanvasRenderingContext2D.cpp ('k') | Source/platform/graphics/GraphicsContext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/GraphicsContext.h
diff --git a/Source/platform/graphics/GraphicsContext.h b/Source/platform/graphics/GraphicsContext.h
index 0178d341b7c3bf99f85c3ec1ff175482359a8572..a0a0572a6baabdaf253d9f0bebfed763e9df81d1 100644
--- a/Source/platform/graphics/GraphicsContext.h
+++ b/Source/platform/graphics/GraphicsContext.h
@@ -112,6 +112,10 @@ public:
// ---------- State management methods -----------------
void save();
void restore();
+ unsigned saveCount() { return m_canvasStateStack.size(); }
+#if !ASSERT_DISABLED
+ void disableDestructionChecks() { m_disableDestructionChecks = true; }
+#endif
void saveLayer(const SkRect* bounds, const SkPaint*);
void restoreLayer();
@@ -513,6 +517,7 @@ private:
#if !ASSERT_DISABLED
unsigned m_annotationCount;
unsigned m_layerCount;
+ bool m_disableDestructionChecks;
#endif
// Tracks the region painted opaque via the GraphicsContext.
OpaqueRegionSkia m_opaqueRegion;
« no previous file with comments | « Source/core/html/canvas/CanvasRenderingContext2D.cpp ('k') | Source/platform/graphics/GraphicsContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698