Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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 75 of file SkResourceCache.h.

Member Typedef Documentation

◆ Key

Definition at line 76 of file SkResourceCache.h.

Constructor & Destructor Documentation

◆ Rec()

SkResourceCache::Rec::Rec ( )
inline

Definition at line 78 of file SkResourceCache.h.

78{}

◆ ~Rec()

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

Reimplemented in SkBitmapCache::Rec.

Definition at line 79 of file SkResourceCache.h.

79{}

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 89 of file SkResourceCache.h.

89{ return true; }

◆ diagnostic_only_getDiscardable()

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

Reimplemented in SkBitmapCache::Rec.

Definition at line 104 of file SkResourceCache.h.

104{ 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 81 of file SkResourceCache.h.

81{ 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 100 of file SkResourceCache.h.

100{}

Friends And Related Symbol Documentation

◆ SkResourceCache

friend class SkResourceCache
friend

Definition at line 110 of file SkResourceCache.h.


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