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

Unified Diff: chrome/browser/thumbnails/content_analysis.cc

Issue 382623002: SkBitmap::Config is no more, use SkColorType (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: missed some for chromeos and win 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: chrome/browser/thumbnails/content_analysis.cc
diff --git a/chrome/browser/thumbnails/content_analysis.cc b/chrome/browser/thumbnails/content_analysis.cc
index 758508e2fe3830d5943db84ddfde3326a6013811..96c93a030a0d5be484d9c2a3a3902224a9acd03e 100644
--- a/chrome/browser/thumbnails/content_analysis.cc
+++ b/chrome/browser/thumbnails/content_analysis.cc
@@ -233,7 +233,7 @@ void ApplyGaussianGradientMagnitudeFilter(SkBitmap* input_bitmap,
SkAutoLockPixels source_lock(*input_bitmap);
DCHECK(input_bitmap);
DCHECK(input_bitmap->getPixels());
- DCHECK_EQ(SkBitmap::kA8_Config, input_bitmap->config());
+ DCHECK_EQ(kAlpha_8_SkColorType, input_bitmap->colorType());
// To perform computations we will need one intermediate buffer. It can
// very well be just another bitmap.
@@ -383,7 +383,7 @@ void ExtractImageProfileInformation(const SkBitmap& input_bitmap,
DCHECK(rows);
DCHECK(columns);
DCHECK(input_bitmap.getPixels());
- DCHECK_EQ(SkBitmap::kA8_Config, input_bitmap.config());
+ DCHECK_EQ(kAlpha_8_SkColorType, input_bitmap.colorType());
DCHECK_GE(area.x(), 0);
DCHECK_GE(area.y(), 0);
DCHECK_LE(area.right(), input_bitmap.width());
« no previous file with comments | « chrome/browser/extensions/convert_web_app.cc ('k') | chrome/browser/thumbnails/content_analysis_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698