#include <picture_recorder.h>
Definition at line 15 of file picture_recorder.h.
◆ ~PictureRecorder()
flutter::PictureRecorder::~PictureRecorder |
( |
| ) |
|
|
override |
◆ BeginRecording()
Definition at line 28 of file picture_recorder.cc.
28 {
29 display_list_builder_ =
30 sk_make_sp<DisplayListBuilder>(
bounds,
true);
31 return display_list_builder_;
32}
Optional< SkRect > bounds
◆ Create()
void flutter::PictureRecorder::Create |
( |
Dart_Handle |
wrapper | ) |
|
|
static |
Definition at line 18 of file picture_recorder.cc.
18 {
20 auto res = fml::MakeRefCounted<PictureRecorder>();
21 res->AssociateWithDartWrapper(wrapper);
22}
static void ThrowIfUIOperationsProhibited()
◆ endRecording()
void flutter::PictureRecorder::endRecording |
( |
Dart_Handle |
dart_picture | ) |
|
Definition at line 34 of file picture_recorder.cc.
34 {
35 if (!canvas_) {
36 return;
37 }
38
39 auto display_list = display_list_builder_->Build();
40 display_list_builder_ = nullptr;
41
44
45 canvas_->Invalidate();
46 canvas_ = nullptr;
48}
static void CreateAndAssociateWithDartWrapper(Dart_Handle dart_handle, sk_sp< DisplayList > display_list)
#define FML_DCHECK(condition)
◆ set_canvas()
The documentation for this class was generated from the following files: