Index: tests/ImageFilterTest.cpp |
=================================================================== |
--- tests/ImageFilterTest.cpp (revision 14159) |
+++ tests/ImageFilterTest.cpp (working copy) |
@@ -273,8 +273,8 @@ |
SkMatrix expectedMatrix = canvas.getTotalMatrix(); |
- SkPicture picture; |
- SkCanvas* recordingCanvas = picture.beginRecording(100, 100, |
+ SkPictureRecorder recorder; |
+ SkCanvas* recordingCanvas = recorder.beginRecording(100, 100, |
SkPicture::kOptimizeForClippedPlayback_RecordingFlag); |
SkPaint paint; |
@@ -291,9 +291,9 @@ |
recordingCanvas->drawRect(SkRect::Make(SkIRect::MakeWH(100, 100)), solidPaint); |
recordingCanvas->restore(); // scale |
recordingCanvas->restore(); // saveLayer |
- picture.endRecording(); |
+ SkAutoTUnref<SkPicture> picture(recorder.endRecording()); |
- canvas.drawPicture(picture); |
+ canvas.drawPicture(*picture); |
} |
static void test_huge_blur(SkBaseDevice* device, skiatest::Reporter* reporter) { |