Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / content / renderer / skia_benchmarking_extension.cc
index 568eb05..31e7d34 100644 (file)
@@ -158,10 +158,7 @@ void SkiaBenchmarking::Rasterize(gin::Arguments* args) {
   gfx::Rect snapped_clip = gfx::ToEnclosingRect(clip);
 
   SkBitmap bitmap;
-  if (!bitmap.setConfig(SkBitmap::kARGB_8888_Config, snapped_clip.width(),
-                        snapped_clip.height()))
-    return;
-  if (!bitmap.allocPixels())
+  if (!bitmap.allocN32Pixels(snapped_clip.width(), snapped_clip.height()))
     return;
   bitmap.eraseARGB(0, 0, 0, 0);