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

Unified Diff: cc/caching_bitmap_canvas_layer_texture_updater.cc

Issue 11048044: cc: Switch to Chromium DCHECKs and LOGs (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: with-presubmit Created 8 years, 2 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: cc/caching_bitmap_canvas_layer_texture_updater.cc
diff --git a/cc/caching_bitmap_canvas_layer_texture_updater.cc b/cc/caching_bitmap_canvas_layer_texture_updater.cc
index 9225f4761bc4300358766b0ffa4aa6734bb6827c..a60fb67292372cb6ff8b534a112e3010990989a6 100644
--- a/cc/caching_bitmap_canvas_layer_texture_updater.cc
+++ b/cc/caching_bitmap_canvas_layer_texture_updater.cc
@@ -39,7 +39,7 @@ void CachingBitmapCanvasLayerTextureUpdater::prepareToUpdate(
const SkBitmap& new_bitmap = m_canvas->getDevice()->accessBitmap(false);
SkAutoLockPixels lock(new_bitmap);
- ASSERT(new_bitmap.bytesPerPixel() > 0);
+ CC_DCHECK(new_bitmap.bytesPerPixel() > 0);
pixels_did_change_ = new_bitmap.config() != cached_bitmap_.config() ||
new_bitmap.height() != cached_bitmap_.height() ||
new_bitmap.width() != cached_bitmap_.width() ||

Powered by Google App Engine
This is Rietveld 408576698