Index: include/core/SkPictureRecorder.h |
diff --git a/include/core/SkPictureRecorder.h b/include/core/SkPictureRecorder.h |
index 811d02a36e141f6eff06a23cafc8d1f5fa7747dc..b24975acdeab4a9767873a26151853f360477bee 100644 |
--- a/include/core/SkPictureRecorder.h |
+++ b/include/core/SkPictureRecorder.h |
@@ -75,6 +75,17 @@ public: |
SkPicture* SK_WARN_UNUSED_RESULT endRecordingAsPicture(); |
/** |
+ * Signal that the caller is done recording, and update the cull rect to use for bounding |
+ * box hierarchy (BBH) generation. The behavior is the same as calling |
+ * endRecordingAsPicture(), except that this method updates the cull rect initially passed |
+ * into beginRecording. |
+ * @param cullRect the new culling rectangle to use as the overall bound for BBH generation |
+ * and subsequent culling operations. |
+ * @return the picture containing the recorded content. |
+ */ |
+ SkPicture* SK_WARN_UNUSED_RESULT endRecordingAsPicture(const SkRect& cullRect); |
+ |
+ /** |
* Signal that the caller is done recording. This invalidates the canvas returned by |
* beginRecording/getRecordingCanvas. Ownership of the object is passed to the caller, who |
* must call unref() when they are done using it. |