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

Unified Diff: ui/gfx/color_utils_unittest.cc

Issue 2758413002: cc/paint: Remove PaintCanvas::peekPixels. (Closed)
Patch Set: update Created 3 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
Index: ui/gfx/color_utils_unittest.cc
diff --git a/ui/gfx/color_utils_unittest.cc b/ui/gfx/color_utils_unittest.cc
index 3870dd3f38e3c06fef309f8f69b51cc48434c9f1..fcba64c05f9fb4ee7d861e0518604e9762e16317 100644
--- a/ui/gfx/color_utils_unittest.cc
+++ b/ui/gfx/color_utils_unittest.cc
@@ -128,7 +128,7 @@ TEST(ColorUtils, CalculateBoringScore_SingleColor) {
// Fill all pixels in black.
canvas.FillRect(gfx::Rect(kSize), SK_ColorBLACK);
- SkBitmap bitmap = canvas.ToBitmap();
+ SkBitmap bitmap = canvas.GetBitmap();
// The thumbnail should deserve the highest boring score.
EXPECT_DOUBLE_EQ(1.0, CalculateBoringScore(bitmap));
}
@@ -143,7 +143,7 @@ TEST(ColorUtils, CalculateBoringScore_TwoColors) {
canvas.FillRect(gfx::Rect(0, 0, kSize.width() / 2, kSize.height()),
SK_ColorWHITE);
- SkBitmap bitmap = canvas.ToBitmap();
+ SkBitmap bitmap = canvas.GetBitmap();
ASSERT_EQ(kSize.width(), bitmap.width());
ASSERT_EQ(kSize.height(), bitmap.height());
// The thumbnail should be less boring because two colors are used.

Powered by Google App Engine
This is Rietveld 408576698