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

Unified Diff: third_party/WebKit/Source/platform/graphics/DeferredImageDecoder.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/DeferredImageDecoder.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/DeferredImageDecoder.cpp b/third_party/WebKit/Source/platform/graphics/DeferredImageDecoder.cpp
index 5d68f6662c35cf7581d73c3c0fc1f32748136473..898d6b70ce58f5fc9b1f368b0de5c78f0fe34cd0 100644
--- a/third_party/WebKit/Source/platform/graphics/DeferredImageDecoder.cpp
+++ b/third_party/WebKit/Source/platform/graphics/DeferredImageDecoder.cpp
@@ -316,8 +316,8 @@ sk_sp<SkImage> DeferredImageDecoder::createFrameImageAtIndex(
size_t index,
bool knownToBeOpaque) {
const SkISize& decodedSize = m_frameGenerator->getFullSize();
- ASSERT(decodedSize.width() > 0);
- ASSERT(decodedSize.height() > 0);
+ DCHECK_GT(decodedSize.width(), 0);
+ DCHECK_GT(decodedSize.height(), 0);
sk_sp<SkROBuffer> roBuffer(m_rwBuffer->newRBufferSnapshot());
RefPtr<SegmentReader> segmentReader =

Powered by Google App Engine
This is Rietveld 408576698