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 |