diff options
Diffstat (limited to 'gm/bitmapsource.cpp')
-rw-r--r-- | gm/bitmapsource.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gm/bitmapsource.cpp b/gm/bitmapsource.cpp index f40cc15e90..6d575eb72e 100644 --- a/gm/bitmapsource.cpp +++ b/gm/bitmapsource.cpp @@ -23,7 +23,8 @@ protected: void makeBitmap() { fBitmap.allocN32Pixels(100, 100); - SkCanvas canvas(fBitmap); + SkBitmapDevice device(fBitmap); + SkCanvas canvas(&device); canvas.clear(0x00000000); SkPaint paint; paint.setAntiAlias(true); |