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

#include <raster_cache_key.h>

Classes

struct  Equal
 
struct  Hash
 

Public Types

template<class Value >
using Map = std::unordered_map< RasterCacheKey, Value, Hash, Equal >
 

Public Member Functions

 RasterCacheKey (uint64_t unique_id, RasterCacheKeyType type, const SkMatrix &ctm)
 
 RasterCacheKey (RasterCacheKeyID id, const SkMatrix &ctm)
 
const RasterCacheKeyIDid () const
 
const SkMatrixmatrix () const
 
RasterCacheKeyKind kind () const
 

Detailed Description

Definition at line 77 of file raster_cache_key.h.

Member Typedef Documentation

◆ Map

template<class Value >
using flutter::RasterCacheKey::Map = std::unordered_map<RasterCacheKey, Value, Hash, Equal>

Definition at line 117 of file raster_cache_key.h.

Constructor & Destructor Documentation

◆ RasterCacheKey() [1/2]

flutter::RasterCacheKey::RasterCacheKey ( uint64_t  unique_id,
RasterCacheKeyType  type,
const SkMatrix ctm 
)
inline

Definition at line 79 of file raster_cache_key.h.

82 : RasterCacheKey(RasterCacheKeyID(unique_id, type), ctm) {}
RasterCacheKey(uint64_t unique_id, RasterCacheKeyType type, const SkMatrix &ctm)

◆ RasterCacheKey() [2/2]

flutter::RasterCacheKey::RasterCacheKey ( RasterCacheKeyID  id,
const SkMatrix ctm 
)
inline

Definition at line 84 of file raster_cache_key.h.

85 : id_(std::move(id)), matrix_(ctm) {
86 matrix_[SkMatrix::kMTransX] = 0;
87 matrix_[SkMatrix::kMTransY] = 0;
88 }
static constexpr int kMTransY
vertical translation
Definition SkMatrix.h:358
static constexpr int kMTransX
horizontal translation
Definition SkMatrix.h:355

Member Function Documentation

◆ id()

const RasterCacheKeyID & flutter::RasterCacheKey::id ( ) const
inline

Definition at line 90 of file raster_cache_key.h.

90{ return id_; }

◆ kind()

RasterCacheKeyKind flutter::RasterCacheKey::kind ( ) const
inline

◆ matrix()

const SkMatrix & flutter::RasterCacheKey::matrix ( ) const
inline

Definition at line 91 of file raster_cache_key.h.

91{ return matrix_; }

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