Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
flutter::LayerSnapshotData Class Reference

#include <layer_snapshot_store.h>

Public Member Functions

 LayerSnapshotData (int64_t layer_unique_id, const fml::TimeDelta &duration, const sk_sp< SkData > &snapshot, const SkRect &bounds)
 
 ~LayerSnapshotData ()=default
 
int64_t GetLayerUniqueId () const
 
fml::TimeDelta GetDuration () const
 
sk_sp< SkDataGetSnapshot () const
 
SkRect GetBounds () const
 

Detailed Description

Container for snapshot data pertaining to a given layer. A layer is identified by it's unique id.

Definition at line 21 of file layer_snapshot_store.h.

Constructor & Destructor Documentation

◆ LayerSnapshotData()

flutter::LayerSnapshotData::LayerSnapshotData ( int64_t  layer_unique_id,
const fml::TimeDelta duration,
const sk_sp< SkData > &  snapshot,
const SkRect bounds 
)

Definition at line 12 of file layer_snapshot_store.cc.

16 : layer_unique_id_(layer_unique_id),
17 duration_(duration),
18 snapshot_(snapshot),
19 bounds_(bounds) {}
double duration
Definition examples.cpp:30

◆ ~LayerSnapshotData()

flutter::LayerSnapshotData::~LayerSnapshotData ( )
default

Member Function Documentation

◆ GetBounds()

SkRect flutter::LayerSnapshotData::GetBounds ( ) const
inline

Definition at line 36 of file layer_snapshot_store.h.

36{ return bounds_; }

◆ GetDuration()

fml::TimeDelta flutter::LayerSnapshotData::GetDuration ( ) const
inline

Definition at line 32 of file layer_snapshot_store.h.

32{ return duration_; }

◆ GetLayerUniqueId()

int64_t flutter::LayerSnapshotData::GetLayerUniqueId ( ) const
inline

Definition at line 30 of file layer_snapshot_store.h.

30{ return layer_unique_id_; }

◆ GetSnapshot()

sk_sp< SkData > flutter::LayerSnapshotData::GetSnapshot ( ) const
inline

Definition at line 34 of file layer_snapshot_store.h.

34{ return snapshot_; }

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