| 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..2a7cf9cfb3a2b224de4ec14f1f9433dbba58e2e6 100644
|
| --- a/cc/layers/nine_patch_layer_impl_unittest.cc
|
| +++ b/cc/layers/nine_patch_layer_impl_unittest.cc
|
| @@ -55,12 +55,8 @@ 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);
|
| + bool is_opaque = false;
|
| + UIResourceBitmap bitmap(bitmap_size, is_opaque);
|
|
|
| host_impl.CreateUIResource(uid, bitmap);
|
| layer->SetUIResourceId(uid);
|
|
|