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

Unified Diff: cc/layers/nine_patch_layer_impl_unittest.cc

Issue 197883017: SkColorType instead of (deprecated) SkBitmap::Config (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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
Index: cc/layers/nine_patch_layer_impl_unittest.cc
diff --git a/cc/layers/nine_patch_layer_impl_unittest.cc b/cc/layers/nine_patch_layer_impl_unittest.cc
index 614f5ede866c797b687fc8fef815f80a7345e756..d88cdce0a82e07a8e0e002a9d09506cd1837938f 100644
--- a/cc/layers/nine_patch_layer_impl_unittest.cc
+++ b/cc/layers/nine_patch_layer_impl_unittest.cc
@@ -55,12 +55,7 @@ void NinePatchLayerLayoutTest(const gfx::Size& bitmap_size,
layer->draw_properties().render_target = layer.get();
UIResourceId uid = 1;
- SkBitmap skbitmap;
- skbitmap.setConfig(
- SkBitmap::kARGB_8888_Config, bitmap_size.width(), bitmap_size.height());
- skbitmap.allocPixels();
- skbitmap.setImmutable();
- UIResourceBitmap bitmap(skbitmap);
+ UIResourceBitmap bitmap(bitmap_size.width(), bitmap_size.height());
host_impl.CreateUIResource(uid, bitmap);
layer->SetUIResourceId(uid);

Powered by Google App Engine
This is Rietveld 408576698