Flutter Engine
The Flutter Engine
Public Member Functions | Static Public Member Functions | List of all members
SkDiscardableMemoryPool Class Referenceabstract

#include <SkDiscardableMemoryPool.h>

Inheritance diagram for SkDiscardableMemoryPool:
SkDiscardableMemory::Factory SkRefCnt SkRefCntBase

Public Member Functions

virtual size_t getRAMUsed ()=0
 
virtual void setRAMBudget (size_t budget)=0
 
virtual size_t getRAMBudget ()=0
 
virtual void dumpPool ()=0
 
- Public Member Functions inherited from SkDiscardableMemory::Factory
virtual SkDiscardableMemorycreate (size_t bytes)=0
 
- Public Member Functions inherited from SkRefCntBase
 SkRefCntBase ()
 
virtual ~SkRefCntBase ()
 
bool unique () const
 
void ref () const
 
void unref () const
 

Static Public Member Functions

static sk_sp< SkDiscardableMemoryPoolMake (size_t size)
 

Detailed Description

An implementation of Discardable Memory that manages a fixed-size budget of memory. When the allocated memory exceeds this size, unlocked blocks of memory are purged. If all memory is locked, it can exceed the memory-use budget.

Definition at line 28 of file SkDiscardableMemoryPool.h.

Member Function Documentation

◆ dumpPool()

virtual void SkDiscardableMemoryPool::dumpPool ( )
pure virtual

purges all unlocked DMs

◆ getRAMBudget()

virtual size_t SkDiscardableMemoryPool::getRAMBudget ( )
pure virtual

◆ getRAMUsed()

virtual size_t SkDiscardableMemoryPool::getRAMUsed ( )
pure virtual

◆ Make()

sk_sp< SkDiscardableMemoryPool > SkDiscardableMemoryPool::Make ( size_t  size)
static

This non-global pool can be used for unit tests to verify that the pool works.

Definition at line 233 of file SkDiscardableMemoryPool.cpp.

233 {
234 return sk_make_sp<DiscardableMemoryPool>(size);
235}
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
Definition: switches.h:259

◆ setRAMBudget()

virtual void SkDiscardableMemoryPool::setRAMBudget ( size_t  budget)
pure virtual

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