Index: tests/CanvasStateTest.cpp |
diff --git a/tests/CanvasStateTest.cpp b/tests/CanvasStateTest.cpp |
index 7c441a40feb4c761e3145e9dca7f3a2a39f61e9f..29e67f2e14f5544455a22047ee70312b84c6d127 100644 |
--- a/tests/CanvasStateTest.cpp |
+++ b/tests/CanvasStateTest.cpp |
@@ -186,8 +186,9 @@ public: |
static void test_draw_filters(skiatest::Reporter* reporter) { |
TestDrawFilter drawFilter; |
- SkBitmapDevice device(SkBitmap::kARGB_8888_Config, 10, 10); |
- SkCanvas canvas(&device); |
+ SkBitmap bitmap; |
+ bitmap.allocN32Pixels(10, 10); |
+ SkCanvas canvas(bitmap); |
canvas.setDrawFilter(&drawFilter); |
@@ -209,8 +210,9 @@ static void test_draw_filters(skiatest::Reporter* reporter) { |
static void error_callback(SkError code, void* ctx) {} |
static void test_soft_clips(skiatest::Reporter* reporter) { |
- SkBitmapDevice device(SkBitmap::kARGB_8888_Config, 10, 10); |
- SkCanvas canvas(&device); |
+ SkBitmap bitmap; |
+ bitmap.allocN32Pixels(10, 10); |
+ SkCanvas canvas(bitmap); |
SkRRect roundRect; |
roundRect.setOval(SkRect::MakeWH(5, 5)); |