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

Unified Diff: components/wallpaper/wallpaper_color_calculator_unittest.cc

Issue 2717943002: Fix cc/paint skia type mismatches (Closed)
Patch Set: Rebase Created 3 years, 10 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 | « components/printing/renderer/print_web_view_helper.cc ('k') | content/child/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/wallpaper/wallpaper_color_calculator_unittest.cc
diff --git a/components/wallpaper/wallpaper_color_calculator_unittest.cc b/components/wallpaper/wallpaper_color_calculator_unittest.cc
index bc65acfa086cafd37b25fc01116a57be94fe3616..2990891ba7b42ed57add6be50acfdad4fc489d85 100644
--- a/components/wallpaper/wallpaper_color_calculator_unittest.cc
+++ b/components/wallpaper/wallpaper_color_calculator_unittest.cc
@@ -81,8 +81,7 @@ WallPaperColorCalculatorTest::WallPaperColorCalculatorTest()
canvas.FillRect(gfx::Rect(kImageSize), kGray);
canvas.FillRect(gfx::Rect(0, 1, 300, 1), kVibrantGreen);
- SkBitmap bitmap = skia::ReadPixels(canvas.sk_canvas());
- image_ = gfx::ImageSkia::CreateFrom1xBitmap(bitmap);
+ image_ = gfx::ImageSkia::CreateFrom1xBitmap(canvas.ToBitmap());
calculator_ = base::MakeUnique<WallpaperColorCalculator>(
image_, color_utils::LumaRange::NORMAL,
« no previous file with comments | « components/printing/renderer/print_web_view_helper.cc ('k') | content/child/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698