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, |