| Index: tests/SerializationTest.cpp
|
| ===================================================================
|
| --- tests/SerializationTest.cpp (revision 14159)
|
| +++ tests/SerializationTest.cpp (working copy)
|
| @@ -369,11 +369,10 @@
|
|
|
| // Test simple SkPicture serialization
|
| {
|
| - SkPicture* pict = new SkPicture;
|
| - SkAutoUnref aur(pict);
|
| - bool didDraw = drawSomething(pict->beginRecording(kBitmapSize, kBitmapSize));
|
| + SkPictureRecorder recorder;
|
| + bool didDraw = drawSomething(recorder.beginRecording(kBitmapSize, kBitmapSize));
|
| REPORTER_ASSERT(reporter, didDraw);
|
| - pict->endRecording();
|
| + SkAutoTUnref<SkPicture> pict(recorder.endRecording());
|
|
|
| // Serialize picture
|
| SkWriteBuffer writer(SkWriteBuffer::kValidation_Flag);
|
|
|