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

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: 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/ImageDecodingStore.h
diff --git a/third_party/WebKit/Source/platform/graphics/ImageDecodingStore.h b/third_party/WebKit/Source/platform/graphics/ImageDecodingStore.h
index 12eb6007a494664c82824e0ec616cdfd9a6766a6..204e77e6357eb92a2832b7fa959c07d576267555 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 useCount)
: m_generator(generator), m_useCount(useCount), m_prev(0), m_next(0) {}
- virtual ~CacheEntry() { ASSERT(!m_useCount); }
+ virtual ~CacheEntry() { DCHECK(!m_useCount); }
const ImageFrameGenerator* generator() const { return m_generator; }
int useCount() const { return m_useCount; }
void incrementUseCount() { ++m_useCount; }
void decrementUseCount() {
--m_useCount;
- ASSERT(m_useCount >= 0);
+ DCHECK_GE(m_useCount, 0);
}
// FIXME: getSafeSize() returns the size in bytes truncated to a 32-bit

Powered by Google App Engine
This is Rietveld 408576698