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

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: updated 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
Index: Source/platform/graphics/GraphicsContext.h
diff --git a/Source/platform/graphics/GraphicsContext.h b/Source/platform/graphics/GraphicsContext.h
index 0178d341b7c3bf99f85c3ec1ff175482359a8572..94be401860c2dd32c70759dae9a7cb6ec7fdddd5 100644
--- a/Source/platform/graphics/GraphicsContext.h
+++ b/Source/platform/graphics/GraphicsContext.h
@@ -112,6 +112,11 @@ public:
// ---------- State management methods -----------------
void save();
void restore();
+ void unwindStateStack();
+#if !ASSERT_DISABLED
+ unsigned saveCount() { return m_saveCount; }
f(malita) 2014/05/27 20:28:22 return m_canvasStateStack.size()?
+ void disableDestructionChecks() { m_disableDestructionChecks = true; }
+#endif
void saveLayer(const SkRect* bounds, const SkPaint*);
void restoreLayer();
@@ -513,6 +518,8 @@ private:
#if !ASSERT_DISABLED
unsigned m_annotationCount;
unsigned m_layerCount;
+ unsigned m_saveCount;
f(malita) 2014/05/27 20:28:22 Can we use m_canvasStateStack.size() instead?
Justin Novosad 2014/05/27 22:25:25 I guess. I am being prematurely concerned about in
+ bool m_disableDestructionChecks;
#endif
// Tracks the region painted opaque via the GraphicsContext.
OpaqueRegionSkia m_opaqueRegion;

Powered by Google App Engine
This is Rietveld 408576698