Index: src/core/SkPictureRecorder.cpp |
diff --git a/src/core/SkPictureRecorder.cpp b/src/core/SkPictureRecorder.cpp |
index 877314ccafd98bca89c89a19e97f3f5bcad3acef..8254801d6960fcc5ea47280250159a264d82e8bf 100644 |
--- a/src/core/SkPictureRecorder.cpp |
+++ b/src/core/SkPictureRecorder.cpp |
@@ -95,6 +95,19 @@ SkPicture* SkPictureRecorder::endRecordingAsPicture() { |
subPictureBytes)); |
} |
+SkPicture* SkPictureRecorder::endRecordingAsPicture(const SkRect& cullRect, |
+ SkBBHFactory* bbhFactory /* = NULL */) { |
+ fCullRect = cullRect; |
+ |
+ if (bbhFactory) { |
+ fBBH.reset((*bbhFactory)(cullRect)); |
+ SkASSERT(fBBH.get()); |
+ } |
+ |
+ return this->endRecordingAsPicture(); |
+} |
+ |
+ |
void SkPictureRecorder::partialReplay(SkCanvas* canvas) const { |
if (NULL == canvas) { |
return; |