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

Unified Diff: third_party/WebKit/Source/platform/graphics/GraphicsContextStateSaver.h

Issue 2807923002: Replace ASSERT, ASSERT_NOT_REACHED, and RELEASE_ASSERT in platform/graphics (Closed)
Patch Set: Replace ASSERT, ASSERT_NOT_REACHED, and RELEASE_ASSERT in platform/graphics Created 3 years, 8 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: third_party/WebKit/Source/platform/graphics/GraphicsContextStateSaver.h
diff --git a/third_party/WebKit/Source/platform/graphics/GraphicsContextStateSaver.h b/third_party/WebKit/Source/platform/graphics/GraphicsContextStateSaver.h
index 4fa189a96c74859a650473852e23f8581ee0efcd..2b2ffb642f8882b2364277c7422f870f955d1441 100644
--- a/third_party/WebKit/Source/platform/graphics/GraphicsContextStateSaver.h
+++ b/third_party/WebKit/Source/platform/graphics/GraphicsContextStateSaver.h
@@ -54,7 +54,7 @@ class PLATFORM_EXPORT GraphicsContextStateSaver final {
}
void save() {
- ASSERT(!m_saveAndRestore);
+ DCHECK(!m_saveAndRestore);
m_context.save();
m_saveAndRestore = true;
}
@@ -66,7 +66,7 @@ class PLATFORM_EXPORT GraphicsContextStateSaver final {
}
void restore() {
- ASSERT(m_saveAndRestore);
+ DCHECK(m_saveAndRestore);
m_context.restore();
m_saveAndRestore = false;
}

Powered by Google App Engine
This is Rietveld 408576698