Index: bench/RecordingBench.cpp |
diff --git a/bench/RecordingBench.cpp b/bench/RecordingBench.cpp |
index 1cc4d153450c4c8c16ec18d4d899e6e0a9271314..537c9e158e6127f94566923b96884d29cc4f223c 100644 |
--- a/bench/RecordingBench.cpp |
+++ b/bench/RecordingBench.cpp |
@@ -38,6 +38,6 @@ void RecordingBench::onDraw(int loops, SkCanvas*) { |
for (int i = 0; i < loops; i++) { |
SkPictureRecorder recorder; |
fSrc->playback(recorder.beginRecording(w, h, fUseBBH ? &factory : nullptr, flags)); |
- SkSafeUnref(recorder.endRecording()); |
+ (void)recorder.finishRecordingAsPicture(); |
} |
} |