#include <surface_frame.h>
Definition at line 24 of file surface_frame.h.
◆ SubmitCallback
◆ SurfaceFrame()
Definition at line 18 of file surface_frame.cc.
26 submit_callback_(submit_callback),
27 context_result_(std::move(context_result)) {
29 if (surface_) {
30#if !SLIMPELLER
32 canvas_ = &adapter_;
33#else
35 return;
36#endif
37 } else if (display_list_fallback) {
39
40
41
42
43
44 dl_builder_ = sk_make_sp<DisplayListBuilder>(
SkRect::Make(frame_size),
45 false);
46 canvas_ = dl_builder_.get();
47 }
48}
void set_canvas(SkCanvas *canvas)
const FramebufferInfo & framebuffer_info() const
#define FML_LOG(severity)
#define FML_DCHECK(condition)
static SkRect Make(const SkISize &size)
◆ BuildDisplayList()
Definition at line 85 of file surface_frame.cc.
85 {
86 TRACE_EVENT0(
"impeller",
"SurfaceFrame::BuildDisplayList");
87 return dl_builder_ ? dl_builder_->Build() : nullptr;
88}
#define TRACE_EVENT0(category_group, name)
◆ Canvas()
DlCanvas * flutter::SurfaceFrame::Canvas |
( |
| ) |
|
◆ framebuffer_info()
◆ IsSubmitted()
bool flutter::SurfaceFrame::IsSubmitted |
( |
| ) |
const |
◆ set_submit_info()
void flutter::SurfaceFrame::set_submit_info |
( |
const SubmitInfo & |
submit_info | ) |
|
|
inline |
Definition at line 95 of file surface_frame.h.
95 {
97 }
const SubmitInfo & submit_info() const
◆ SkiaSurface()
◆ Submit()
bool flutter::SurfaceFrame::Submit |
( |
| ) |
|
Definition at line 50 of file surface_frame.cc.
50 {
52 if (submitted_) {
53 return false;
54 }
55
56 submitted_ = PerformSubmit();
57
58 return submitted_;
59}
◆ submit_info()
const SubmitInfo & flutter::SurfaceFrame::submit_info |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following files: