Index: src/core/SkPictureRecorder.cpp |
diff --git a/src/core/SkPictureRecorder.cpp b/src/core/SkPictureRecorder.cpp |
index c110e0a2db3e9b8b9282a841224478fa74054850..877314ccafd98bca89c89a19e97f3f5bcad3acef 100644 |
--- a/src/core/SkPictureRecorder.cpp |
+++ b/src/core/SkPictureRecorder.cpp |
@@ -38,7 +38,10 @@ SkCanvas* SkPictureRecorder::beginRecording(const SkRect& cullRect, |
if (!fRecord) { |
fRecord.reset(SkNEW(SkRecord)); |
} |
- fRecorder->reset(fRecord.get(), cullRect, &fMiniRecorder); |
+ SkRecorder::DrawPictureMode dpm = (recordFlags & kPlaybackDrawPicture_RecordFlag) |
+ ? SkRecorder::Playback_DrawPictureMode |
+ : SkRecorder::Record_DrawPictureMode; |
+ fRecorder->reset(fRecord.get(), cullRect, dpm, &fMiniRecorder); |
fActivelyRecording = true; |
return this->getRecordingCanvas(); |
} |