summaryrefslogtreecommitdiffstats
path: root/cc/test/layer_tree_json_parser.cc
diff options
context:
space:
mode:
Diffstat (limited to 'cc/test/layer_tree_json_parser.cc')
-rw-r--r--cc/test/layer_tree_json_parser.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/cc/test/layer_tree_json_parser.cc b/cc/test/layer_tree_json_parser.cc
index e543f1d..1634868 100644
--- a/cc/test/layer_tree_json_parser.cc
+++ b/cc/test/layer_tree_json_parser.cc
@@ -69,8 +69,7 @@ scoped_refptr<Layer> ParseTreeFromValue(base::Value* val,
scoped_refptr<NinePatchLayer> nine_patch_layer = NinePatchLayer::Create();
SkBitmap bitmap;
- bitmap.setConfig(SkBitmap::kARGB_8888_Config, image_width, image_height);
- bitmap.allocPixels(NULL, NULL);
+ bitmap.allocN32Pixels(image_width, image_height);
bitmap.setImmutable();
nine_patch_layer->SetBitmap(bitmap);
nine_patch_layer->SetAperture(