Flutter Engine
The Flutter Engine
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 79 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 119 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 81 of file raster_cache_key.h.

84 : RasterCacheKey(RasterCacheKeyID(unique_id, type), ctm) {}
GLenum type
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 86 of file raster_cache_key.h.

87 : id_(std::move(id)), matrix_(ctm) {
88 matrix_[SkMatrix::kMTransX] = 0;
89 matrix_[SkMatrix::kMTransY] = 0;
90 }
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 92 of file raster_cache_key.h.

92{ return id_; }

◆ kind()

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

◆ matrix()

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

Definition at line 93 of file raster_cache_key.h.

93{ return matrix_; }

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