Index: experimental/PdfViewer/chop_transparency_main.cpp |
diff --git a/experimental/PdfViewer/chop_transparency_main.cpp b/experimental/PdfViewer/chop_transparency_main.cpp |
index 7dbf3fcb1494c1453092970cc12b71246777abb4..b6a104cc59d8ad5988b509bd30566d4d09bb90a2 100644 |
--- a/experimental/PdfViewer/chop_transparency_main.cpp |
+++ b/experimental/PdfViewer/chop_transparency_main.cpp |
@@ -58,9 +58,7 @@ static SkISize opaqueSize(const SkBitmap& bm) { |
} |
static void setup_bitmap(SkBitmap* bitmap, int width, int height) { |
- bitmap->setConfig(SkBitmap::kARGB_8888_Config, width, height); |
- |
- bitmap->allocPixels(); |
+ bitmap->allocN32Pixels(width, height); |
} |