Index: tools/filtermain.cpp |
=================================================================== |
--- tools/filtermain.cpp (revision 14159) |
+++ tools/filtermain.cpp (working copy) |
@@ -717,15 +717,14 @@ |
int numAfter = debugCanvas.getSize(); |
if (!outFile.isEmpty()) { |
- SkPicture outPicture; |
- |
- SkCanvas* canvas = outPicture.beginRecording(inPicture->width(), inPicture->height()); |
+ SkPictureRecorder recorder; |
+ SkCanvas* canvas = recorder.beginRecording(inPicture->width(), inPicture->height()); |
debugCanvas.draw(canvas); |
- outPicture.endRecording(); |
+ SkAutoTUnref<SkPicture> outPicture(recorder.endRecording()); |
SkFILEWStream outStream(outFile.c_str()); |
- outPicture.serialize(&outStream); |
+ outPicture->serialize(&outStream); |
} |
bool someOptFired = false; |