Index: cc/layers/nine_patch_layer_unittest.cc |
diff --git a/cc/layers/nine_patch_layer_unittest.cc b/cc/layers/nine_patch_layer_unittest.cc |
index cdb2af36f3f344eb475381426c510a13fbf44dad..4166d8e9cab608475ba5147cdf8265dc0f152769 100644 |
--- a/cc/layers/nine_patch_layer_unittest.cc |
+++ b/cc/layers/nine_patch_layer_unittest.cc |
@@ -64,13 +64,9 @@ TEST_F(NinePatchLayerTest, SetLayerProperties) { |
EXPECT_FALSE(test_layer->DrawsContent()); |
- SkBitmap bitmap; |
- bitmap.setConfig(SkBitmap::kARGB_8888_Config, 10, 10); |
- bitmap.allocPixels(); |
- bitmap.setImmutable(); |
- |
+ bool is_opaque = false; |
scoped_ptr<ScopedUIResource> resource = ScopedUIResource::Create( |
- layer_tree_host_.get(), UIResourceBitmap(bitmap)); |
+ layer_tree_host_.get(), UIResourceBitmap(gfx::Size(10, 10), is_opaque)); |
gfx::Rect aperture(5, 5, 1, 1); |
bool fill_center = true; |
test_layer->SetAperture(aperture); |