Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
flutter::testing::ImpellerRenderResult Class Referencefinal
Inheritance diagram for flutter::testing::ImpellerRenderResult:
flutter::testing::RenderResult

Public Member Functions

 ImpellerRenderResult (sk_sp< DlPixelData > screenshot, SkRect render_bounds)
 
 ~ImpellerRenderResult () override=default
 
sk_sp< SkImageimage () const override
 
int width () const override
 
int height () const override
 
const uint32_t * addr32 (int x, int y) const override
 
void write (const std::string &path) const override
 
const SkRectrender_bounds () const
 
- Public Member Functions inherited from flutter::testing::RenderResult
virtual ~RenderResult ()=default
 
virtual sk_sp< SkImageimage () const =0
 
virtual int width () const =0
 
virtual int height () const =0
 
virtual const uint32_t * addr32 (int x, int y) const =0
 
virtual void write (const std::string &path) const =0
 

Detailed Description

Definition at line 413 of file dl_rendering_unittests.cc.

Constructor & Destructor Documentation

◆ ImpellerRenderResult()

flutter::testing::ImpellerRenderResult::ImpellerRenderResult ( sk_sp< DlPixelData screenshot,
SkRect  render_bounds 
)
inlineexplicit

Definition at line 415 of file dl_rendering_unittests.cc.

417 : screenshot_(std::move(screenshot)), render_bounds_(render_bounds) {}

◆ ~ImpellerRenderResult()

flutter::testing::ImpellerRenderResult::~ImpellerRenderResult ( )
overridedefault

Member Function Documentation

◆ addr32()

const uint32_t * flutter::testing::ImpellerRenderResult::addr32 ( int  x,
int  y 
) const
inlineoverridevirtual

Implements flutter::testing::RenderResult.

Definition at line 423 of file dl_rendering_unittests.cc.

423 {
424 return screenshot_->addr32(x, y);
425 }
double y
double x

◆ height()

int flutter::testing::ImpellerRenderResult::height ( ) const
inlineoverridevirtual

Implements flutter::testing::RenderResult.

Definition at line 422 of file dl_rendering_unittests.cc.

422{ return screenshot_->height(); }

◆ image()

sk_sp< SkImage > flutter::testing::ImpellerRenderResult::image ( ) const
inlineoverridevirtual

Implements flutter::testing::RenderResult.

Definition at line 420 of file dl_rendering_unittests.cc.

420{ return nullptr; };

◆ render_bounds()

const SkRect & flutter::testing::ImpellerRenderResult::render_bounds ( ) const
inline

Definition at line 429 of file dl_rendering_unittests.cc.

429{ return render_bounds_; }

◆ width()

int flutter::testing::ImpellerRenderResult::width ( ) const
inlineoverridevirtual

Implements flutter::testing::RenderResult.

Definition at line 421 of file dl_rendering_unittests.cc.

421{ return screenshot_->width(); };

◆ write()

void flutter::testing::ImpellerRenderResult::write ( const std::string &  path) const
inlineoverridevirtual

Implements flutter::testing::RenderResult.

Definition at line 426 of file dl_rendering_unittests.cc.

426 {
427 screenshot_->write(path);
428 }
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir path
Definition: switches.h:57

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