Chromium Code Reviews| Index: src/core/SkRecorder.cpp |
| diff --git a/src/core/SkRecorder.cpp b/src/core/SkRecorder.cpp |
| index aafb540a052f9f428c4c70cf71c39e75d4e01397..83a6e4093ccbaf463a11b75ee04a9386ab38a109 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; |
| + SkCanvas::resetForNextPicture(bounds.roundOut()); |
|
reed1
2015/04/07 21:02:13
this->resetForNextPicture()
or
this->INHERITED::re
mtklein
2015/04/07 21:04:42
Done. Brain fart. No need to mention SkCanvas...
|
| +} |
| + |
| void SkRecorder::forgetRecord() { |
| fDrawableList.reset(NULL); |
| fRecord = NULL; |