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

Public Member Functions

 SkPictureJobRenderer (sk_sp< SkPicture > picture)
 
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 560 of file dl_rendering_unittests.cc.

Constructor & Destructor Documentation

◆ SkPictureJobRenderer()

flutter::testing::SkPictureJobRenderer::SkPictureJobRenderer ( sk_sp< SkPicture picture)
inlineexplicit

Definition at line 561 of file dl_rendering_unittests.cc.

562 : picture_(std::move(picture)) {}
sk_sp< const SkPicture > picture
Definition: SkRecords.h:299

Member Function Documentation

◆ Render()

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

Implements flutter::testing::JobRenderer.

Definition at line 564 of file dl_rendering_unittests.cc.

564 {
565 FML_DCHECK(info.opacity == SK_Scalar1);
566 picture_->playback(canvas);
567 }
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
Definition: DM.cpp:213
#define SK_Scalar1
Definition: SkScalar.h:18
virtual void playback(SkCanvas *canvas, AbortCallback *callback=nullptr) const =0
#define FML_DCHECK(condition)
Definition: logging.h:103

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