Flutter Engine
flutter::Rasterizer::Screenshot Struct Reference

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)
 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()
 

Detailed Description

A POD type used to return the screenshot data along with the size of the frame.

Definition at line 279 of file rasterizer.h.

Constructor & Destructor Documentation

◆ Screenshot() [1/3]

flutter::Rasterizer::Screenshot::Screenshot ( )

Creates an empty screenshot.

Definition at line 699 of file rasterizer.cc.

Referenced by Screenshot().

699 {}

◆ Screenshot() [2/3]

flutter::Rasterizer::Screenshot::Screenshot ( sk_sp< SkData >  p_data,
SkISize  p_size 
)

Creates a screenshot with the specified data and size.

Parameters
[in]p_dataThe screenshot data
[in]p_sizeThe screenshot size.

Definition at line 701 of file rasterizer.cc.

References Screenshot(), and ~Screenshot().

702  : data(std::move(p_data)), frame_size(p_size) {}

◆ Screenshot() [3/3]

flutter::Rasterizer::Screenshot::Screenshot ( const Screenshot other)
default

The copy constructor for a screenshot.

Parameters
[in]otherThe screenshot to copy from.

◆ ~Screenshot()

flutter::Rasterizer::Screenshot::~Screenshot ( )
default

Destroys the screenshot object and releases underlying data.

Referenced by Screenshot().

Member Data Documentation

◆ 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.

See also
ScreenshotType

Definition at line 286 of file rasterizer.h.

Referenced by flutter::testing::TEST_F().

◆ frame_size

SkISize flutter::Rasterizer::Screenshot::frame_size = SkISize::MakeEmpty()

The size of the screenshot in texels.

Definition at line 291 of file rasterizer.h.


The documentation for this struct was generated from the following files: