Index: dm/DMRecordTask.cpp |
diff --git a/dm/DMRecordTask.cpp b/dm/DMRecordTask.cpp |
index 95a8bbd217cc781c7357660a703a1043164e92d4..31c46a69dac41173c1e519d1bebd7fa37fdd4839 100644 |
--- a/dm/DMRecordTask.cpp |
+++ b/dm/DMRecordTask.cpp |
@@ -16,13 +16,10 @@ RecordTask::RecordTask(const Task& parent, skiagm::GM* gm, SkBitmap reference) |
{} |
void RecordTask::draw() { |
- using EXPERIMENTAL::SkRecording; |
- using EXPERIMENTAL::SkPlayback; |
- |
// Record the GM into an SkRecord. |
- SkRecording* recording = SkRecording::Create(fReference.width(), fReference.height()); |
- fGM->draw(recording->canvas()); |
- SkAutoTDelete<const SkPlayback> playback(SkRecording::Delete(recording)); |
+ EXPERIMENTAL::SkRecording recording(fReference.width(), fReference.height()); |
+ fGM->draw(recording.canvas()); |
+ SkAutoTDelete<const EXPERIMENTAL::SkPlayback> playback(recording.releasePlayback()); |
// Draw the SkRecord back into a bitmap. |
SkBitmap bitmap; |