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

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

Issue 397733004: Allow assertions to be enabled in Blink Release builds. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed config.gni. Minor cleanups. 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 1593a96cd6c836e939e9f9f93bad9bbc09b4f15e..8b486ee055f1c170fe2d1a12aa0e11f0011de1a1 100644
--- a/Source/platform/graphics/GraphicsContext.h
+++ b/Source/platform/graphics/GraphicsContext.h
@@ -112,7 +112,7 @@ public:
void save();
void restore();
unsigned saveCount() { return m_canvasStateStack.size(); }
-#if ASSERT_ENABLED
+#if ENABLE(ASSERT)
void disableDestructionChecks() { m_disableDestructionChecks = true; }
#endif
@@ -500,7 +500,7 @@ private:
struct RecordingState;
Vector<RecordingState> m_recordingStateStack;
-#if ASSERT_ENABLED
+#if ENABLE(ASSERT)
unsigned m_annotationCount;
unsigned m_layerCount;
bool m_disableDestructionChecks;

Powered by Google App Engine
This is Rietveld 408576698