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

Unified Diff: cc/resources/picture_pile_impl_unittest.cc

Issue 197883017: SkColorType instead of (deprecated) SkBitmap::Config (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comments from #5 Created 6 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
« no previous file with comments | « cc/resources/bitmap_content_layer_updater.cc ('k') | cc/resources/resource_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/picture_pile_impl_unittest.cc
diff --git a/cc/resources/picture_pile_impl_unittest.cc b/cc/resources/picture_pile_impl_unittest.cc
index f6414db16cc27d5cc93a6417090eb3efa7f1f735..c60bce37e8d826ae5d7b351725959144fe61d981 100644
--- a/cc/resources/picture_pile_impl_unittest.cc
+++ b/cc/resources/picture_pile_impl_unittest.cc
@@ -674,10 +674,7 @@ TEST(PicturePileImpl, RasterContentsOpaque) {
canvas_rect.Inset(0, 0, -1, -1);
SkBitmap bitmap;
- bitmap.setConfig(SkBitmap::kARGB_8888_Config,
- canvas_rect.width(),
- canvas_rect.height());
- bitmap.allocPixels();
+ bitmap.allocN32Pixels(canvas_rect.width(), canvas_rect.height());
SkCanvas canvas(bitmap);
canvas.clear(SK_ColorTRANSPARENT);
@@ -726,10 +723,7 @@ TEST(PicturePileImpl, RasterContentsTransparent) {
canvas_rect.Inset(0, 0, -1, -1);
SkBitmap bitmap;
- bitmap.setConfig(SkBitmap::kARGB_8888_Config,
- canvas_rect.width(),
- canvas_rect.height());
- bitmap.allocPixels();
+ bitmap.allocN32Pixels(canvas_rect.width(), canvas_rect.height());
SkCanvas canvas(bitmap);
FakeRenderingStatsInstrumentation rendering_stats_instrumentation;
« no previous file with comments | « cc/resources/bitmap_content_layer_updater.cc ('k') | cc/resources/resource_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698