Index: tests/PictureTest.cpp |
diff --git a/tests/PictureTest.cpp b/tests/PictureTest.cpp |
index 5aaf73bdfb46e84a05f91eea0f45ed061bc41809..7665b13d7e42c30be4f1b010d7e61b602996f916 100644 |
--- a/tests/PictureTest.cpp |
+++ b/tests/PictureTest.cpp |
@@ -922,8 +922,8 @@ static void test_clip_bound_opt(skiatest::Reporter* reporter) { |
*/ |
class ClipCountingCanvas : public SkCanvas { |
public: |
- explicit ClipCountingCanvas(SkBaseDevice* device) |
- : SkCanvas(device) |
+ explicit ClipCountingCanvas(int width, int height) |
+ : INHERITED(width, height) |
, fClipCount(0){ |
} |
@@ -965,8 +965,7 @@ static void test_clip_expansion(skiatest::Reporter* reporter) { |
p.setColor(SK_ColorBLUE); |
canvas->drawPaint(p); |
- SkBitmapDevice testDevice(SkBitmap::kNo_Config, 10, 10); |
- ClipCountingCanvas testCanvas(&testDevice); |
+ ClipCountingCanvas testCanvas(10, 10); |
picture.draw(&testCanvas); |
// Both clips should be present on playback. |