Flutter Engine
 
Loading...
Searching...
No Matches
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 SkMatrix & matrix () const
 
RasterCacheKeyKind kind () const
 

Detailed Description

Definition at line 76 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 116 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 78 of file raster_cache_key.h.

81 : 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 83 of file raster_cache_key.h.

84 : id_(std::move(id)), matrix_(ctm) {
85 matrix_[SkMatrix::kMTransX] = 0;
86 matrix_[SkMatrix::kMTransY] = 0;
87 }

Member Function Documentation

◆ id()

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

Definition at line 89 of file raster_cache_key.h.

89{ return id_; }

◆ kind()

◆ matrix()

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

Definition at line 90 of file raster_cache_key.h.

90{ return matrix_; }

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