Flutter Engine
The Flutter Engine
Public Types | Public Member Functions | Public Attributes | List of all members
TestRec Struct Reference
Inheritance diagram for TestRec:
SkResourceCache::Rec SkResourceCache::Rec

Public Types

enum  { kDidInstall = 1 << 0 }
 
- Public Types inherited from SkResourceCache::Rec
typedef SkResourceCache::Key Key
 

Public Member Functions

 TestRec (int sharedID, int32_t data, int *flagPtr)
 
const KeygetKey () const override
 
size_t bytesUsed () const override
 
bool canBePurged () override
 
void postAddInstall (void *) override
 
const char * getCategory () const override
 
- Public Member Functions inherited from SkResourceCache::Rec
 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
 

Public Attributes

TestKey fKey
 
intfFlags
 
bool fCanBePurged
 

Detailed Description

Definition at line 237 of file SkResourceCacheTest.cpp.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
kDidInstall 

Definition at line 238 of file SkResourceCacheTest.cpp.

238 {
239 kDidInstall = 1 << 0,
240 };

Constructor & Destructor Documentation

◆ TestRec()

TestRec::TestRec ( int  sharedID,
int32_t  data,
int flagPtr 
)
inline

Definition at line 246 of file SkResourceCacheTest.cpp.

246 : fKey(sharedID, data), fFlags(flagPtr) {
247 fCanBePurged = false;
248 }
uint16_t fFlags
Definition: ShapeLayer.cpp:106
std::shared_ptr< const fml::Mapping > data
Definition: texture_gles.cc:63

Member Function Documentation

◆ bytesUsed()

size_t TestRec::bytesUsed ( ) const
inlineoverridevirtual

Implements SkResourceCache::Rec.

Definition at line 251 of file SkResourceCacheTest.cpp.

251{ return 1024; /* just need a value */ }

◆ canBePurged()

bool TestRec::canBePurged ( )
inlineoverridevirtual

Reimplemented from SkResourceCache::Rec.

Definition at line 252 of file SkResourceCacheTest.cpp.

252{ return fCanBePurged; }

◆ getCategory()

const char * TestRec::getCategory ( ) const
inlineoverridevirtual

Implements SkResourceCache::Rec.

Definition at line 256 of file SkResourceCacheTest.cpp.

256{ return "test-category"; }

◆ getKey()

const Key & TestRec::getKey ( ) const
inlineoverridevirtual

Implements SkResourceCache::Rec.

Definition at line 250 of file SkResourceCacheTest.cpp.

250{ return fKey; }

◆ postAddInstall()

void TestRec::postAddInstall ( void *  )
inlineoverridevirtual

Reimplemented from SkResourceCache::Rec.

Definition at line 253 of file SkResourceCacheTest.cpp.

253 {
255 }

Member Data Documentation

◆ fCanBePurged

bool TestRec::fCanBePurged

Definition at line 244 of file SkResourceCacheTest.cpp.

◆ fFlags

int* TestRec::fFlags

Definition at line 243 of file SkResourceCacheTest.cpp.

◆ fKey

TestKey TestRec::fKey

Definition at line 242 of file SkResourceCacheTest.cpp.


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