Index: tools/skpmaker.cpp |
diff --git a/tools/skpmaker.cpp b/tools/skpmaker.cpp |
index 8fa969a6f072f2a87dc55ca0088ae5d719d58774..99e6adf997166e1e055851148489a9ef8fcb4a24 100644 |
--- a/tools/skpmaker.cpp |
+++ b/tools/skpmaker.cpp |
@@ -41,9 +41,8 @@ static void make_skp(SkScalar width, SkScalar height, SkScalar border, SkColor c |
paint.setColor(color); |
r.inset(border, border); |
canvas->drawRect(r, paint); |
- SkAutoTUnref<SkPicture> pict(recorder.endRecording()); |
SkFILEWStream stream(writePath); |
- pict->serialize(&stream); |
+ recorder.finishRecordingAsPicture()->serialize(&stream); |
} |
int tool_main(int argc, char** argv); |