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

Unified Diff: ui/gfx/color_utils.cc

Issue 9720040: ui/gfx: Do not use the deprecated SkBitmap::getConfig() function. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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 | « skia/ext/vector_platform_device_emf_win.cc ('k') | ui/gfx/icon_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/color_utils.cc
diff --git a/ui/gfx/color_utils.cc b/ui/gfx/color_utils.cc
index 0012b244c4b000a3e50be038dfe2e97ca86b957b..16d89907e0fddf60a68676809a178fd42d6a1cc2 100644
--- a/ui/gfx/color_utils.cc
+++ b/ui/gfx/color_utils.cc
@@ -212,7 +212,7 @@ SkColor GetAverageColorOfFavicon(SkBitmap* favicon, SkAlpha alpha) {
return SkColorSetARGB(alpha, 0, 0, 0);
// Assume ARGB_8888 format.
- DCHECK(favicon->getConfig() == SkBitmap::kARGB_8888_Config);
+ DCHECK(favicon->config() == SkBitmap::kARGB_8888_Config);
SkColor* current_color = pixels;
DCHECK(favicon->width() <= 16 && favicon->height() <= 16);
@@ -248,7 +248,7 @@ void BuildLumaHistogram(const SkBitmap& bitmap, int histogram[256]) {
return;
// Assume ARGB_8888 format.
- DCHECK(bitmap.getConfig() == SkBitmap::kARGB_8888_Config);
+ DCHECK(bitmap.config() == SkBitmap::kARGB_8888_Config);
int pixel_width = bitmap.width();
int pixel_height = bitmap.height();
« no previous file with comments | « skia/ext/vector_platform_device_emf_win.cc ('k') | ui/gfx/icon_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698