Flutter Engine
The Flutter Engine
|
A screenshot that was produced from MetalScreenshotter
.
More...
#include <metal_screenshot.h>
Public Member Functions | |
MetalScreenshot (CGImageRef cgImage) | |
~MetalScreenshot () | |
const uint8_t * | GetBytes () const override |
Access raw data of the screenshot. More... | |
size_t | GetHeight () const override |
Returns the height of the image in pixels. More... | |
size_t | GetWidth () const override |
Returns the width of the image in pixels. More... | |
size_t | GetBytesPerRow () const override |
Returns number of bytes required to represent one row of the raw image. More... | |
bool | WriteToPNG (const std::string &path) const override |
Public Member Functions inherited from impeller::testing::Screenshot | |
virtual | ~Screenshot ()=default |
virtual const uint8_t * | GetBytes () const =0 |
Access raw data of the screenshot. More... | |
virtual size_t | GetHeight () const =0 |
Returns the height of the image in pixels. More... | |
virtual size_t | GetWidth () const =0 |
Returns the width of the image in pixels. More... | |
virtual size_t | GetBytesPerRow () const =0 |
Returns number of bytes required to represent one row of the raw image. More... | |
virtual bool | WriteToPNG (const std::string &path) const =0 |
A screenshot that was produced from MetalScreenshotter
.
Definition at line 18 of file metal_screenshot.h.
|
explicit |
Definition at line 10 of file metal_screenshot.mm.
impeller::testing::MetalScreenshot::~MetalScreenshot | ( | ) |
Definition at line 15 of file metal_screenshot.mm.
|
overridevirtual |
Access raw data of the screenshot.
Implements impeller::testing::Screenshot.
Definition at line 20 of file metal_screenshot.mm.
|
overridevirtual |
Returns number of bytes required to represent one row of the raw image.
Implements impeller::testing::Screenshot.
Definition at line 32 of file metal_screenshot.mm.
|
overridevirtual |
Returns the height of the image in pixels.
Implements impeller::testing::Screenshot.
Definition at line 24 of file metal_screenshot.mm.
|
overridevirtual |
Returns the width of the image in pixels.
Implements impeller::testing::Screenshot.
Definition at line 28 of file metal_screenshot.mm.
|
overridevirtual |
Synchronously write the screenshot to disk as a PNG at path
. Returns true
if it succeeded.
Implements impeller::testing::Screenshot.
Definition at line 36 of file metal_screenshot.mm.