| Index: samplecode/SampleTiling.cpp
|
| diff --git a/samplecode/SampleTiling.cpp b/samplecode/SampleTiling.cpp
|
| index 125155e8d050e3a02713244f42c7a8b9b8445d08..62f055f61ec5c100df71e570a23340d402f3fb29 100644
|
| --- a/samplecode/SampleTiling.cpp
|
| +++ b/samplecode/SampleTiling.cpp
|
| @@ -54,7 +54,7 @@ static const int gWidth = 32;
|
| static const int gHeight = 32;
|
|
|
| class TilingView : public SampleView {
|
| - SkAutoTUnref<SkPicture> fTextPicture;
|
| + sk_sp<SkPicture> fTextPicture;
|
| SkAutoTUnref<SkDrawLooper> fLooper;
|
| public:
|
| TilingView()
|
| @@ -153,11 +153,11 @@ protected:
|
|
|
| if (textCanvas) {
|
| SkASSERT(nullptr == fTextPicture);
|
| - fTextPicture.reset(recorder.endRecording());
|
| + fTextPicture = recorder.finishRecordingAsPicture();
|
| }
|
|
|
| SkASSERT(fTextPicture);
|
| - canvas->drawPicture(fTextPicture);
|
| + canvas->drawPicture(fTextPicture.get());
|
| }
|
|
|
| private:
|
|
|