Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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
 

Detailed Description

Definition at line 412 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 414 of file dl_rendering_unittests.cc.

416 : 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 422 of file dl_rendering_unittests.cc.

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

◆ height()

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

Implements flutter::testing::RenderResult.

Definition at line 421 of file dl_rendering_unittests.cc.

421{ return screenshot_->height(); }

◆ image()

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

Implements flutter::testing::RenderResult.

Definition at line 419 of file dl_rendering_unittests.cc.

419{ return nullptr; };

◆ render_bounds()

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

Definition at line 428 of file dl_rendering_unittests.cc.

428{ return render_bounds_; }

◆ width()

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

Implements flutter::testing::RenderResult.

Definition at line 420 of file dl_rendering_unittests.cc.

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

◆ write()

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

Implements flutter::testing::RenderResult.

Definition at line 425 of file dl_rendering_unittests.cc.

425 {
426 screenshot_->write(path);
427 }
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: