Chromium Code Reviews| Index: tests/PictureTest.cpp |
| diff --git a/tests/PictureTest.cpp b/tests/PictureTest.cpp |
| index 5aaf73bdfb46e84a05f91eea0f45ed061bc41809..008c22b1b38a6524ed296b0ac4aa847fba68a8a2 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) |
| + : SkCanvas(width, height) |
|
scroggo
2014/01/31 18:59:23
nit: INHERITED
|
| , 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. |