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

Unified Diff: ui/gfx/color_analysis_unittest.cc

Issue 374633002: SkBitmap::Config is deprecated, use SkColorType instead (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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: ui/gfx/color_analysis_unittest.cc
diff --git a/ui/gfx/color_analysis_unittest.cc b/ui/gfx/color_analysis_unittest.cc
index fe5b585d3f18c9056570437234201fb0fef01099..4d5db5fd3c8f8f1fec4665f03db66e9e98206bee 100644
--- a/ui/gfx/color_analysis_unittest.cc
+++ b/ui/gfx/color_analysis_unittest.cc
@@ -149,7 +149,7 @@ void Calculate8bitBitmapMinMax(const SkBitmap& bitmap,
uint8_t* max_gl) {
SkAutoLockPixels bitmap_lock(bitmap);
DCHECK(bitmap.getPixels());
- DCHECK(bitmap.config() == SkBitmap::kA8_Config);
+ DCHECK(bitmap.colorType() == kAlpha_8_SkColorType);
msw 2014/07/07 19:47:51 nit: DCHECK_EQ
reed1 2014/07/07 19:51:46 Done.
DCHECK(min_gl);
DCHECK(max_gl);
*min_gl = std::numeric_limits<uint8_t>::max();

Powered by Google App Engine
This is Rietveld 408576698