Flutter Engine
 
Loading...
Searching...
No Matches
flutter::testing::ImpellerRenderResult Class Referencefinal
Inheritance diagram for flutter::testing::ImpellerRenderResult:
flutter::testing::RenderResult

Public Member Functions

 ImpellerRenderResult (sk_sp< DlPixelData > screenshot, DlRect render_bounds)
 
 ~ImpellerRenderResult () override=default
 
sk_sp< SkImage > image () 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 DlRectrender_bounds () const
 
- Public Member Functions inherited from flutter::testing::RenderResult
virtual ~RenderResult ()=default
 

Detailed Description

Definition at line 426 of file dl_rendering_unittests.cc.

Constructor & Destructor Documentation

◆ ImpellerRenderResult()

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

Definition at line 428 of file dl_rendering_unittests.cc.

430 : 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 436 of file dl_rendering_unittests.cc.

436 {
437 return screenshot_->addr32(x, y);
438 }
int32_t x
double y

References x, and y.

◆ height()

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

Implements flutter::testing::RenderResult.

Definition at line 435 of file dl_rendering_unittests.cc.

435{ return screenshot_->height(); }

◆ image()

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

Implements flutter::testing::RenderResult.

Definition at line 433 of file dl_rendering_unittests.cc.

433{ return nullptr; };

◆ render_bounds()

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

Definition at line 442 of file dl_rendering_unittests.cc.

442{ return render_bounds_; }

◆ width()

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

Implements flutter::testing::RenderResult.

Definition at line 434 of file dl_rendering_unittests.cc.

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

◆ write()

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

Implements flutter::testing::RenderResult.

Definition at line 439 of file dl_rendering_unittests.cc.

439 {
440 screenshot_->write(path);
441 }
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 switch_defs.h:52

References flutter::path.


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