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

Unified Diff: ui/gfx/color_utils.cc

Issue 361643002: setConfig is deprecated, use setInfo or allocPixels instead (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: don't call allocPixels+rowbytes yet (skia bug) Created 6 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 | « ui/gfx/color_analysis_unittest.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 3e00326f5223f6181d70fc01c0233a9442bb3bbd..ffdbec5a5b298f9075aad4c2448b1e7f0503b860 100644
--- a/ui/gfx/color_utils.cc
+++ b/ui/gfx/color_utils.cc
@@ -224,7 +224,7 @@ SkColor HSLShift(SkColor color, const HSL& shift) {
}
void BuildLumaHistogram(const SkBitmap& bitmap, int histogram[256]) {
- DCHECK_EQ(kPMColor_SkColorType, bitmap.colorType());
+ DCHECK_EQ(kN32_SkColorType, bitmap.colorType());
SkAutoLockPixels bitmap_lock(bitmap);
« no previous file with comments | « ui/gfx/color_analysis_unittest.cc ('k') | ui/gfx/icon_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698