15 : context_(
Ref(&context)), surface_(
std::move(surface)) {
17 context_ && context_->IsValid() && surface_ && surface_->IsValid();
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();
47 return surface_->Present();
const sk_sp< flutter::DisplayList > GetDisplayList() const
bool DrawDisplayList(const DisplayList &dl) const
Surface(const Surface &)=delete
ScopedObject< Object > Ref(Object *object)
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)