diff options
Diffstat (limited to 'tests/PictureTest.cpp')
-rw-r--r-- | tests/PictureTest.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/PictureTest.cpp b/tests/PictureTest.cpp index 5aaf73bdfb..7665b13d7e 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. |