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

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

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/ImageDecodingStore.h
diff --git a/third_party/WebKit/Source/platform/graphics/ImageDecodingStore.h b/third_party/WebKit/Source/platform/graphics/ImageDecodingStore.h
index 04ee218b7d00bf1695dca826e010a9ea0954aef0..dce492da1f808afd3466117670b96fa81495fec9 100644
--- a/third_party/WebKit/Source/platform/graphics/ImageDecodingStore.h
+++ b/third_party/WebKit/Source/platform/graphics/ImageDecodingStore.h
@@ -112,14 +112,14 @@ class PLATFORM_EXPORT ImageDecodingStore final {
CacheEntry(const ImageFrameGenerator* generator, int use_count)
: generator_(generator), use_count_(use_count), prev_(0), next_(0) {}
- virtual ~CacheEntry() { ASSERT(!use_count_); }
+ virtual ~CacheEntry() { DCHECK(!use_count_); }
const ImageFrameGenerator* Generator() const { return generator_; }
int UseCount() const { return use_count_; }
void IncrementUseCount() { ++use_count_; }
void DecrementUseCount() {
--use_count_;
- ASSERT(use_count_ >= 0);
+ DCHECK_GE(use_count_, 0);
}
// FIXME: getSafeSize() returns the size in bytes truncated to a 32-bit

Powered by Google App Engine
This is Rietveld 408576698