diff options
Diffstat (limited to 'skia/tools')
-rw-r--r-- | skia/tools/filter_fuzz_stub/filter_fuzz_stub.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/skia/tools/filter_fuzz_stub/filter_fuzz_stub.cc b/skia/tools/filter_fuzz_stub/filter_fuzz_stub.cc index 2d37a2d..1cb4d7f 100644 --- a/skia/tools/filter_fuzz_stub/filter_fuzz_stub.cc +++ b/skia/tools/filter_fuzz_stub/filter_fuzz_stub.cc @@ -4,6 +4,7 @@ #include "base/file_util.h" #include "base/logging.h" +#include "third_party/skia/include/core/SkBitmapDevice.h" #include "third_party/skia/include/core/SkCanvas.h" #include "third_party/skia/include/core/SkFlattenableSerialization.h" #include "third_party/skia/include/core/SkImageFilter.h" @@ -73,8 +74,10 @@ int main(int argc, char** argv) { int ret = 0; SkBitmap bitmap; - bitmap.allocN32Pixels(BitmapSize, BitmapSize); - SkCanvas canvas(bitmap); + bitmap.setConfig(SkBitmap::kARGB_8888_Config, BitmapSize, BitmapSize); + bitmap.allocPixels(); + SkBitmapDevice device(bitmap); + SkCanvas canvas(&device); canvas.clear(0x00000000); for (int i = 1; i < argc; i++) |