Index: gm/imagefiltersscaled.cpp |
diff --git a/gm/imagefiltersscaled.cpp b/gm/imagefiltersscaled.cpp |
index 28b3c9f1712ea040f16b421374bb1cda687beba1..a9c4a10587515c5eaf859df15e903bdc58132b29 100644 |
--- a/gm/imagefiltersscaled.cpp |
+++ b/gm/imagefiltersscaled.cpp |
@@ -35,7 +35,8 @@ |
void make_checkerboard() { |
fCheckerboard.allocN32Pixels(64, 64); |
- SkCanvas canvas(fCheckerboard); |
+ SkBitmapDevice device(fCheckerboard); |
+ SkCanvas canvas(&device); |
canvas.clear(0x00000000); |
SkPaint darkPaint; |
darkPaint.setColor(0xFF404040); |
@@ -59,7 +60,8 @@ |
SkScalar y = SkIntToScalar(height / 2); |
SkScalar radius = SkScalarMul(SkMinScalar(x, y), SkIntToScalar(4) / SkIntToScalar(5)); |
fGradientCircle.allocN32Pixels(width, height); |
- SkCanvas canvas(fGradientCircle); |
+ SkBitmapDevice device(fGradientCircle); |
+ SkCanvas canvas(&device); |
canvas.clear(0x00000000); |
SkColor colors[2]; |
colors[0] = SK_ColorWHITE; |