Index: gm/displacement.cpp |
diff --git a/gm/displacement.cpp b/gm/displacement.cpp |
index b1f097b8bf848f0eaa3477f4098e778695bb39d7..ef6207a20d293584824a271f41d419738c007d4d 100644 |
--- a/gm/displacement.cpp |
+++ b/gm/displacement.cpp |
@@ -33,7 +33,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); |
@@ -45,7 +46,8 @@ |
void make_checkerboard(SkBitmap* bitmap, int w, int h) { |
bitmap->allocN32Pixels(w, h); |
- SkCanvas canvas(*bitmap); |
+ SkBitmapDevice device(*bitmap); |
+ SkCanvas canvas(&device); |
canvas.clear(0x00000000); |
SkPaint darkPaint; |
darkPaint.setColor(0xFF804020); |