Flutter Engine
flutter::RasterCacheKey< ID > Class Template 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 (ID id, const SkMatrix &ctm)
 
ID id () const
 
const SkMatrix & matrix () const
 

Detailed Description

template<typename ID>
class flutter::RasterCacheKey< ID >

Definition at line 16 of file raster_cache_key.h.

Member Typedef Documentation

◆ Map

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

Definition at line 40 of file raster_cache_key.h.

Constructor & Destructor Documentation

◆ RasterCacheKey()

template<typename ID >
flutter::RasterCacheKey< ID >::RasterCacheKey ( ID  id,
const SkMatrix &  ctm 
)
inline

Definition at line 18 of file raster_cache_key.h.

18  : id_(id), matrix_(ctm) {
19  matrix_[SkMatrix::kMTransX] = 0;
20  matrix_[SkMatrix::kMTransY] = 0;
21  }

Member Function Documentation

◆ id()

template<typename ID >
ID flutter::RasterCacheKey< ID >::id ( ) const
inline

Definition at line 23 of file raster_cache_key.h.

23 { return id_; }

◆ matrix()

template<typename ID >
const SkMatrix& flutter::RasterCacheKey< ID >::matrix ( ) const
inline

Definition at line 24 of file raster_cache_key.h.

24 { return matrix_; }

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