Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
flutter::testing::DisplayListJobRenderer Struct Reference
Inheritance diagram for flutter::testing::DisplayListJobRenderer:
flutter::testing::JobRenderer

Public Member Functions

 DisplayListJobRenderer (sk_sp< DisplayList > display_list)
 
void Render (SkCanvas *canvas, const RenderJobInfo &info)
 
- Public Member Functions inherited from flutter::testing::JobRenderer
virtual void Render (SkCanvas *canvas, const RenderJobInfo &info)=0
 
virtual bool targets_impeller () const
 

Detailed Description

Definition at line 573 of file dl_rendering_unittests.cc.

Constructor & Destructor Documentation

◆ DisplayListJobRenderer()

flutter::testing::DisplayListJobRenderer::DisplayListJobRenderer ( sk_sp< DisplayList display_list)
inlineexplicit

Definition at line 574 of file dl_rendering_unittests.cc.

575 : display_list_(std::move(display_list)) {}

Member Function Documentation

◆ Render()

void flutter::testing::DisplayListJobRenderer::Render ( SkCanvas canvas,
const RenderJobInfo info 
)
inlinevirtual

Implements flutter::testing::JobRenderer.

Definition at line 577 of file dl_rendering_unittests.cc.

577 {
578 DlSkCanvasAdapter(canvas).DrawDisplayList(display_list_, info.opacity);
579 }
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
Definition: DM.cpp:213

The documentation for this struct was generated from the following file: