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

Unified Diff: third_party/WebKit/Source/platform/graphics/ProfilingCanvas.cpp

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/ProfilingCanvas.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/ProfilingCanvas.cpp b/third_party/WebKit/Source/platform/graphics/ProfilingCanvas.cpp
index 1e6c97aded86d19f8075b24e08cd9e5b4d577390..1456ec2eaf88d830ba6ca1c958fd01411735ad0a 100644
--- a/third_party/WebKit/Source/platform/graphics/ProfilingCanvas.cpp
+++ b/third_party/WebKit/Source/platform/graphics/ProfilingCanvas.cpp
@@ -44,7 +44,7 @@ CanvasInterceptor<ProfilingCanvas>::~CanvasInterceptor() {
return;
double delta = WTF::monotonicallyIncreasingTime() - m_startTime;
if (auto timings = canvas()->m_timings) {
- ASSERT(timings->size() == canvas()->callCount());
+ DCHECK_EQ(timings->size(), canvas()->callCount());
timings->push_back(delta);
}
}

Powered by Google App Engine
This is Rietveld 408576698