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

Unified Diff: third_party/WebKit/Source/platform/graphics/skia/SkiaUtils.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/skia/SkiaUtils.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/skia/SkiaUtils.cpp b/third_party/WebKit/Source/platform/graphics/skia/SkiaUtils.cpp
index 7a1d06ffd27193aa885dbaee3763e2dd67e26018..35164087b234aa466bc3a3c3a3adf8838cb6c6f9 100644
--- a/third_party/WebKit/Source/platform/graphics/skia/SkiaUtils.cpp
+++ b/third_party/WebKit/Source/platform/graphics/skia/SkiaUtils.cpp
@@ -76,7 +76,7 @@ static const SkBlendMode gMapBlendOpsToXfermodeModes[] = {
SkBlendMode WebCoreCompositeToSkiaComposite(CompositeOperator op,
WebBlendMode blendMode) {
- ASSERT(op == CompositeSourceOver || blendMode == WebBlendModeNormal);
+ DCHECK(op == CompositeSourceOver || blendMode == WebBlendModeNormal);
if (blendMode != WebBlendModeNormal) {
if (static_cast<uint8_t>(blendMode) >=
SK_ARRAY_COUNT(gMapBlendOpsToXfermodeModes)) {
@@ -310,7 +310,7 @@ void drawFocusRingPrimitive(const PrimitiveType&,
PaintCanvas*,
const PaintFlags&,
float cornerRadius) {
- ASSERT_NOT_REACHED(); // Missing an explicit specialization?
+ NOTREACHED(); // Missing an explicit specialization?
}
template <>

Powered by Google App Engine
This is Rietveld 408576698