Index: gm/xfermodeimagefilter.cpp |
diff --git a/gm/xfermodeimagefilter.cpp b/gm/xfermodeimagefilter.cpp |
index 446961871751c2b89f0cee7417ea14ab8dfa2d7d..f843d40dae3e7287fb8bcf135bc13dfffbffeb5f 100644 |
--- a/gm/xfermodeimagefilter.cpp |
+++ b/gm/xfermodeimagefilter.cpp |
@@ -30,7 +30,8 @@ |
void make_bitmap() { |
fBitmap.allocN32Pixels(80, 80); |
- SkCanvas canvas(fBitmap); |
+ SkBitmapDevice device(fBitmap); |
+ SkCanvas canvas(&device); |
canvas.clear(0x00000000); |
SkPaint paint; |
paint.setAntiAlias(true); |
@@ -42,7 +43,8 @@ |
void make_checkerboard() { |
fCheckerboard.allocN32Pixels(80, 80); |
- SkCanvas canvas(fCheckerboard); |
+ SkBitmapDevice device(fCheckerboard); |
+ SkCanvas canvas(&device); |
canvas.clear(0x00000000); |
SkPaint darkPaint; |
darkPaint.setColor(0xFF404040); |