Index: src/core/SkRecorder.cpp |
diff --git a/src/core/SkRecorder.cpp b/src/core/SkRecorder.cpp |
index aafb540a052f9f428c4c70cf71c39e75d4e01397..8684a8e2ebf7cb516ff8c8b9f8aa975aedd019e8 100644 |
--- a/src/core/SkRecorder.cpp |
+++ b/src/core/SkRecorder.cpp |
@@ -39,6 +39,12 @@ SkRecorder::SkRecorder(SkRecord* record, const SkRect& bounds) |
: SkCanvas(bounds.roundOut(), SkCanvas::kConservativeRasterClip_InitFlag) |
, fRecord(record) {} |
+void SkRecorder::reset(SkRecord* record, const SkRect& bounds) { |
+ this->forgetRecord(); |
+ fRecord = record; |
+ this->resetForNextPicture(bounds.roundOut()); |
+} |
+ |
void SkRecorder::forgetRecord() { |
fDrawableList.reset(NULL); |
fRecord = NULL; |