| Index: samplecode/SampleApp.cpp
|
| diff --git a/samplecode/SampleApp.cpp b/samplecode/SampleApp.cpp
|
| index 37377ae44bfa85210ab5129fbb4fc9a6a4523ab3..8beb66ab178abb2c9d4da51c6b52617114e5a5a4 100644
|
| --- a/samplecode/SampleApp.cpp
|
| +++ b/samplecode/SampleApp.cpp
|
| @@ -1359,13 +1359,11 @@ void SampleWindow::afterChildren(SkCanvas* orig) {
|
| }
|
|
|
| if (kPicture_DeviceType == fDeviceType) {
|
| - SkAutoTUnref<SkPicture> picture(fRecorder.endRecording());
|
| + SkAutoTUnref<const SkPicture> picture(fRecorder.endRecording());
|
|
|
| if (true) {
|
| - SkPicture* pict = new SkPicture(*picture);
|
| this->installDrawFilter(orig);
|
| - orig->drawPicture(pict);
|
| - pict->unref();
|
| + orig->drawPicture(picture);
|
| } else if (true) {
|
| SkDynamicMemoryWStream ostream;
|
| picture->serialize(&ostream);
|
|
|