| Index: experimental/PdfViewer/pdf_viewer_main.cpp
|
| diff --git a/experimental/PdfViewer/pdf_viewer_main.cpp b/experimental/PdfViewer/pdf_viewer_main.cpp
|
| index 6395585c4d0a96a084ba86a1267923851546879a..2f1a055e4d63c0c798cd84e08e3c8f3deeaed444 100644
|
| --- a/experimental/PdfViewer/pdf_viewer_main.cpp
|
| +++ b/experimental/PdfViewer/pdf_viewer_main.cpp
|
| @@ -110,9 +110,7 @@ static bool make_output_filepath(SkString* path, const SkString& dir,
|
| }
|
|
|
| static void setup_bitmap(SkBitmap* bitmap, int width, int height, SkColor color) {
|
| - bitmap->setConfig(SkBitmap::kARGB_8888_Config, width, height);
|
| -
|
| - bitmap->allocPixels();
|
| + bitmap->allocN32Pixels(width, height);
|
| bitmap->eraseColor(color);
|
| }
|
|
|
|
|