5#include "flutter/lib/ui/painting/picture_recorder.h"
7#include "flutter/lib/ui/painting/canvas.h"
8#include "flutter/lib/ui/painting/picture.h"
20 auto res = fml::MakeRefCounted<PictureRecorder>();
21 res->AssociateWithDartWrapper(wrapper);
24PictureRecorder::PictureRecorder() {}
29 display_list_builder_ =
30 sk_make_sp<DisplayListBuilder>(
bounds,
true);
31 return display_list_builder_;
39 auto display_list = display_list_builder_->Build();
40 display_list_builder_ =
nullptr;
45 canvas_->Invalidate();
static void Create(Dart_Handle wrapper)
~PictureRecorder() override
sk_sp< DisplayListBuilder > BeginRecording(SkRect bounds)
void endRecording(Dart_Handle dart_picture)
static void CreateAndAssociateWithDartWrapper(Dart_Handle dart_handle, sk_sp< DisplayList > display_list)
static void ThrowIfUIOperationsProhibited()
struct _Dart_Handle * Dart_Handle
#define FML_DCHECK(condition)
Optional< SkRect > bounds
IMPLEMENT_WRAPPERTYPEINFO(flutter_gpu, FlutterGpuTestClass)