A POD type used to return the screenshot data along with the size of the frame. More...
#include <rasterizer.h>
Public Member Functions | |
| Screenshot () | |
| Creates an empty screenshot. | |
| Screenshot (sk_sp< SkData > p_data, DlISize p_size, const std::string &p_format, ScreenshotFormat p_pixel_format) | |
| Creates a screenshot with the specified data and size. | |
| Screenshot (const Screenshot &other) | |
| The copy constructor for a screenshot. | |
| ~Screenshot () | |
| Destroys the screenshot object and releases underlying data. | |
Public Attributes | |
| sk_sp< SkData > | data |
| DlISize | frame_size |
| std::string | format |
| ScreenshotFormat | pixel_format = ScreenshotFormat::kUnknown |
A POD type used to return the screenshot data along with the size of the frame.
Definition at line 399 of file rasterizer.h.
| flutter::Rasterizer::Screenshot::Screenshot | ( | ) |
| flutter::Rasterizer::Screenshot::Screenshot | ( | sk_sp< SkData > | p_data, |
| DlISize | p_size, | ||
| const std::string & | p_format, | ||
| ScreenshotFormat | p_pixel_format | ||
| ) |
Creates a screenshot with the specified data and size.
| [in] | p_data | The screenshot data |
| [in] | p_size | The screenshot size. |
| [in] | p_format | The screenshot format. |
| [in] | p_pixel_format | The screenshot format. |
Definition at line 1160 of file rasterizer.cc.
References format.
|
default |
The copy constructor for a screenshot.
| [in] | other | The screenshot to copy from. |
|
default |
Destroys the screenshot object and releases underlying data.
| sk_sp<SkData> flutter::Rasterizer::Screenshot::data |
The data used to describe the screenshot. The data format depends on the type of screenshot taken and any further encoding done to the same.
ScreenshotType Definition at line 406 of file rasterizer.h.
| std::string flutter::Rasterizer::Screenshot::format |
Characterization of the format of the data in data.
Definition at line 416 of file rasterizer.h.
| DlISize flutter::Rasterizer::Screenshot::frame_size |
The size of the screenshot in texels.
Definition at line 411 of file rasterizer.h.
| ScreenshotFormat flutter::Rasterizer::Screenshot::pixel_format = ScreenshotFormat::kUnknown |
The pixel format of the data in data.
If the impeller backend is not used, this value is always kUnknown and the data is in RGBA8888 format.
Definition at line 423 of file rasterizer.h.