Chromium Code Reviews| Index: samplecode/SamplePath.cpp |
| diff --git a/samplecode/SamplePath.cpp b/samplecode/SamplePath.cpp |
| index a09be281b49f0988d0edd3e74598179d84f7bd84..e35eeb6717575ffe2e91c1ca349cc2e1b5c449f5 100644 |
| --- a/samplecode/SamplePath.cpp |
| +++ b/samplecode/SamplePath.cpp |
| @@ -73,8 +73,7 @@ static void test_cubic2() { |
| } |
| SkBitmap bitmap; |
| - bitmap.setConfig(SkBitmap::kARGB_8888_Config, 300, 200); |
| - bitmap.allocPixels(); |
| + bitmap.allocN32Pixels(300, 200); |
| SkCanvas canvas(bitmap); |
| SkPaint paint; |