diff options
Diffstat (limited to 'samplecode/SamplePathFuzz.cpp')
-rw-r--r-- | samplecode/SamplePathFuzz.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/samplecode/SamplePathFuzz.cpp b/samplecode/SamplePathFuzz.cpp index 05eb76fe21..b66b881547 100644 --- a/samplecode/SamplePathFuzz.cpp +++ b/samplecode/SamplePathFuzz.cpp @@ -629,8 +629,8 @@ static void path_fuzz_stroker(SkBitmap* bitmap, int seed) { const SkPath& path = fuzzPath.getPath(); const SkPaint& paint = fuzzPath.getPaint(); const SkImageInfo& info = bitmap->info(); - SkCanvas* canvas( - SkCanvas::NewRasterDirect(info, bitmap->getPixels(), bitmap->rowBytes())); + std::unique_ptr<SkCanvas> canvas( + SkCanvas::MakeRasterDirect(info, bitmap->getPixels(), bitmap->rowBytes())); int w = info.width() / 4; int h = info.height() / 4; int x = localSeed / 4 % 4; |