Index: bench/PictureNestingBench.cpp |
diff --git a/bench/PictureNestingBench.cpp b/bench/PictureNestingBench.cpp |
index a968d51db55511223964d320b0798c9a9b615d47..abe89368f95e7a76f6bbe1bb1fdc7840b643402b 100644 |
--- a/bench/PictureNestingBench.cpp |
+++ b/bench/PictureNestingBench.cpp |
@@ -74,8 +74,7 @@ protected: |
c->restore(); |
if (recordPicture) { |
- SkAutoTUnref<SkPicture> picture(recorder.endRecording()); |
- canvas->drawPicture(picture); |
+ canvas->drawPicture(recorder.finishRecordingAsPicture()); |
} |
return pics; |
@@ -125,7 +124,7 @@ protected: |
SkCanvas* c = recorder.beginRecording(SkIntToScalar(canvasSize.x()), |
SkIntToScalar(canvasSize.y())); |
this->doDraw(c); |
- SkAutoTUnref<SkPicture> picture(recorder.endRecording()); |
+ (void)recorder.finishRecordingAsPicture(); |
} |
} |
@@ -148,7 +147,7 @@ protected: |
SkIntToScalar(canvasSize.y())); |
this->doDraw(c); |
- fPicture.reset(recorder.endRecording()); |
+ fPicture = recorder.finishRecordingAsPicture(); |
} |
void onDraw(int loops, SkCanvas* canvas) override { |
@@ -158,7 +157,7 @@ protected: |
} |
private: |
- SkAutoTUnref<SkPicture> fPicture; |
+ sk_sp<SkPicture> fPicture; |
typedef PictureNesting INHERITED; |
}; |