Flutter Engine
The Flutter Engine
Public Types | Public Member Functions | Friends | List of all members
SkResourceCache::Rec Struct Referenceabstract

#include <SkResourceCache.h>

Inheritance diagram for SkResourceCache::Rec:
TestRec SkBitmapCache::Rec TestRec

Public Types

typedef SkResourceCache::Key Key
 

Public Member Functions

 Rec ()
 
virtual ~Rec ()
 
uint32_t getHash () const
 
virtual const KeygetKey () const =0
 
virtual size_t bytesUsed () const =0
 
virtual bool canBePurged ()
 
virtual void postAddInstall (void *)
 
virtual const char * getCategory () const =0
 
virtual SkDiscardableMemorydiagnostic_only_getDiscardable () const
 

Friends

class SkResourceCache
 

Detailed Description

Definition at line 76 of file SkResourceCache.h.

Member Typedef Documentation

◆ Key

Definition at line 77 of file SkResourceCache.h.

Constructor & Destructor Documentation

◆ Rec()

SkResourceCache::Rec::Rec ( )
inline

Definition at line 79 of file SkResourceCache.h.

79{}

◆ ~Rec()

virtual SkResourceCache::Rec::~Rec ( )
inlinevirtual

Reimplemented in SkBitmapCache::Rec.

Definition at line 80 of file SkResourceCache.h.

80{}

Member Function Documentation

◆ bytesUsed()

virtual size_t SkResourceCache::Rec::bytesUsed ( ) const
pure virtual

Implemented in SkBitmapCache::Rec, and TestRec.

◆ canBePurged()

virtual bool SkResourceCache::Rec::canBePurged ( )
inlinevirtual

Reimplemented in SkBitmapCache::Rec, and TestRec.

Definition at line 90 of file SkResourceCache.h.

90{ return true; }

◆ diagnostic_only_getDiscardable()

virtual SkDiscardableMemory * SkResourceCache::Rec::diagnostic_only_getDiscardable ( ) const
inlinevirtual

Reimplemented in SkBitmapCache::Rec.

Definition at line 105 of file SkResourceCache.h.

105{ return nullptr; }

◆ getCategory()

virtual const char * SkResourceCache::Rec::getCategory ( ) const
pure virtual

Implemented in SkBitmapCache::Rec, and TestRec.

◆ getHash()

uint32_t SkResourceCache::Rec::getHash ( ) const
inline

Definition at line 82 of file SkResourceCache.h.

82{ return this->getKey().hash(); }
uint32_t hash() const
virtual const Key & getKey() const =0

◆ getKey()

virtual const Key & SkResourceCache::Rec::getKey ( ) const
pure virtual

Implemented in SkBitmapCache::Rec, and TestRec.

◆ postAddInstall()

virtual void SkResourceCache::Rec::postAddInstall ( void *  )
inlinevirtual

Reimplemented in TestRec, and SkBitmapCache::Rec.

Definition at line 101 of file SkResourceCache.h.

101{}

Friends And Related Function Documentation

◆ SkResourceCache

friend class SkResourceCache
friend

Definition at line 111 of file SkResourceCache.h.


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