Flutter Engine
The Flutter Engine
|
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. More... | |
Screenshot (sk_sp< SkData > p_data, SkISize p_size, const std::string &p_format, ScreenshotFormat p_pixel_format) | |
Creates a screenshot with the specified data and size. More... | |
Screenshot (const Screenshot &other) | |
The copy constructor for a screenshot. More... | |
~Screenshot () | |
Destroys the screenshot object and releases underlying data. More... | |
Public Attributes | |
sk_sp< SkData > | data |
SkISize | frame_size = SkISize::MakeEmpty() |
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 398 of file rasterizer.h.
flutter::Rasterizer::Screenshot::Screenshot | ( | ) |
flutter::Rasterizer::Screenshot::Screenshot | ( | sk_sp< SkData > | p_data, |
SkISize | 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 1157 of file rasterizer.cc.
|
default |
The copy constructor for a screenshot.
[in] | other | The screenshot to copy from. |
|
default |
Destroys the screenshot object and releases underlying 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 405 of file rasterizer.h.
std::string flutter::Rasterizer::Screenshot::format |
Characterization of the format of the data in data
.
Definition at line 415 of file rasterizer.h.
SkISize flutter::Rasterizer::Screenshot::frame_size = SkISize::MakeEmpty() |
The size of the screenshot in texels.
Definition at line 410 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 422 of file rasterizer.h.