8 #ifndef SkPictureRecorder_DEFINED
9 #define SkPictureRecorder_DEFINED
14 #include "include/private/base/SkAPI.h"
18 #ifdef SK_BUILD_FOR_ANDROID_FRAMEWORK
50 return this->beginRecording(
SkRect::MakeWH(width, height), bbhFactory);
99 #ifdef SK_BUILD_FOR_ANDROID_FRAMEWORK
100 friend class android::Picture;
102 friend class SkPictureRecorderReplayTester;
103 void partialReplay(
SkCanvas* canvas)
const;
105 bool fActivelyRecording;
108 std::unique_ptr<SkRecorder> fRecorder;
float SkScalar
Definition: SkScalar.h:14
Definition: SkBBHFactory.h:48
Definition: SkBBHFactory.h:20
SkCanvas provides an interface for drawing, and how the drawing is clipped and transformed.
Definition: SkCanvas.h:99
Base-class for objects that draw into SkCanvas.
Definition: SkDrawable.h:37
Definition: SkPictureRecorder.h:32
sk_sp< SkDrawable > finishRecordingAsDrawable()
Signal that the caller is done recording.
SkCanvas * getRecordingCanvas()
Returns the recording canvas if one is active, or NULL if recording is not active.
SkCanvas * beginRecording(const SkRect &bounds, SkBBHFactory *bbhFactory=nullptr)
sk_sp< SkPicture > finishRecordingAsPicture()
Signal that the caller is done recording.
SkCanvas * beginRecording(SkScalar width, SkScalar height, SkBBHFactory *bbhFactory=nullptr)
Definition: SkPictureRecorder.h:48
SkCanvas * beginRecording(const SkRect &bounds, sk_sp< SkBBoxHierarchy > bbh)
Returns the canvas that records the drawing commands.
sk_sp< SkPicture > finishRecordingAsPictureWithCull(const SkRect &cullRect)
Signal that the caller is done recording, and update the cull rect to use for bounding box hierarchy ...
SkPicture records drawing commands made to SkCanvas.
Definition: SkPicture.h:44
SkRect holds four float coordinates describing the upper and lower bounds of a rectangle.
Definition: SkRect.h:582
static constexpr SkRect MakeWH(float w, float h)
Returns constructed SkRect set to float values (0, 0, w, h).
Definition: SkRect.h:609