#include <surface.h>
Definition at line 18 of file surface.h.
◆ ~Surface()
impeller::interop::Surface::~Surface |
( |
| ) |
|
|
overridedefault |
◆ Surface() [1/2]
impeller::interop::Surface::Surface |
( |
const Surface & |
| ) |
|
|
delete |
◆ Surface() [2/2]
Definition at line 14 of file surface.cc.
15 : context_(
Ref(&context)), surface_(std::move(surface)) {
17 context_ && context_->IsValid() && surface_ && surface_->IsValid();
ScopedObject< Object > Ref(Object *object)
◆ DrawDisplayList()
bool impeller::interop::Surface::DrawDisplayList |
( |
const DisplayList & |
dl | ) |
const |
Definition at line 26 of file surface.cc.
27 if (!
IsValid() || !dl.IsValid()) {
31 auto display_list = dl.GetDisplayList();
32 auto& content_context = context_->GetAiksContext().GetContentContext();
33 auto render_target = surface_->GetRenderTarget();
37 auto result =
RenderToTarget(content_context, render_target, display_list,
39 context_->GetContext()->ResetThreadLocalState();
bool RenderToTarget(ContentContext &context, RenderTarget render_target, const sk_sp< flutter::DisplayList > &display_list, Rect cull_rect, bool reset_host_buffer, bool is_onscreen)
Render the provided display list to the render target.
constexpr static TRect MakeSize(const TSize< U > &size)
References impeller::interop::DisplayList::GetDisplayList(), impeller::interop::DisplayList::IsValid(), IsValid(), impeller::TRect< Scalar >::MakeSize(), and impeller::RenderToTarget().
◆ IsValid()
bool impeller::interop::Surface::IsValid |
( |
| ) |
const |
◆ operator=()
◆ Present()
bool impeller::interop::Surface::Present |
( |
| ) |
const |
The documentation for this class was generated from the following files: