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

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..601089f39cd476e2a78485c539ae1a21df276ebe 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_EQ(bitmap.colorType(), kAlpha_8_SkColorType);
DCHECK(min_gl);
DCHECK(max_gl);
*min_gl = std::numeric_limits<uint8_t>::max();

Powered by Google App Engine
This is Rietveld 408576698