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