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

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: fix typo 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 8f60425291892f34cd97029e6b84b83b09ffec28..09de72edeaf02f6b7a5c148cac92f20cb4817f5f 100644
--- a/third_party/WebKit/Source/platform/graphics/DeferredImageDecoder.cpp
+++ b/third_party/WebKit/Source/platform/graphics/DeferredImageDecoder.cpp
@@ -313,8 +313,8 @@ sk_sp<SkImage> DeferredImageDecoder::CreateFrameImageAtIndex(
size_t index,
bool known_to_be_opaque) {
const SkISize& decoded_size = frame_generator_->GetFullSize();
- ASSERT(decoded_size.width() > 0);
- ASSERT(decoded_size.height() > 0);
+ DCHECK_GT(decoded_size.width(), 0);
+ DCHECK_GT(decoded_size.height(), 0);
sk_sp<SkROBuffer> ro_buffer(rw_buffer_->newRBufferSnapshot());
RefPtr<SegmentReader> segment_reader =

Powered by Google App Engine
This is Rietveld 408576698