Index: gm/bitmapsource.cpp |
diff --git a/gm/bitmapsource.cpp b/gm/bitmapsource.cpp |
index f40cc15e9074c400b18c6c67f4d0c453999131f4..6d575eb72e437b4edfb72215ead1191e71ff41c4 100644 |
--- a/gm/bitmapsource.cpp |
+++ b/gm/bitmapsource.cpp |
@@ -23,7 +23,8 @@ |
void makeBitmap() { |
fBitmap.allocN32Pixels(100, 100); |
- SkCanvas canvas(fBitmap); |
+ SkBitmapDevice device(fBitmap); |
+ SkCanvas canvas(&device); |
canvas.clear(0x00000000); |
SkPaint paint; |
paint.setAntiAlias(true); |