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

Unified Diff: base/gfx/png_encoder.cc

Issue 118343: Fix pngencoder mac perf errors - the previous code was never actually doing a... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/gfx/png_encoder.cc
===================================================================
--- base/gfx/png_encoder.cc (revision 17792)
+++ base/gfx/png_encoder.cc (working copy)
@@ -201,10 +201,9 @@
static const int bbp = 4;
SkAutoLockPixels lock_input(input);
- CHECK(!input.empty());
- CHECK(input.bytesPerPixel() == bbp);
- CHECK(input.getConfig() == SkBitmap::kARGB_8888_Config);
- CHECK(input.width() > 1 && input.height() > 1);
+ DCHECK(input.bytesPerPixel() == bbp);
+ DCHECK(input.getConfig() == SkBitmap::kARGB_8888_Config);
+ DCHECK(input.width() > 1 && input.height() > 1);
// SkBitmaps are premultiplied, we need to unpremultiply them.
scoped_array<unsigned char> divided(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698