Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
SkImageFilterCache Class Referenceabstract

#include <SkImageFilterCache.h>

Inheritance diagram for SkImageFilterCache:
SkRefCnt SkRefCntBase

Public Types

enum class  CreateIfNecessary : bool { kNo , kYes }
 

Public Member Functions

 ~SkImageFilterCache () override
 
virtual bool get (const SkImageFilterCacheKey &key, skif::FilterResult *result) const =0
 
virtual void set (const SkImageFilterCacheKey &key, const SkImageFilter *filter, const skif::FilterResult &result)=0
 
virtual void purge ()=0
 
virtual void purgeByImageFilter (const SkImageFilter *)=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< SkImageFilterCacheCreate (size_t maxBytes)
 
static sk_sp< SkImageFilterCacheGet (CreateIfNecessary=CreateIfNecessary::kYes)
 

Static Public Attributes

static constexpr size_t kDefaultTransientSize = 32 * 1024 * 1024
 

Detailed Description

Definition at line 57 of file SkImageFilterCache.h.

Member Enumeration Documentation

◆ CreateIfNecessary

enum class SkImageFilterCache::CreateIfNecessary : bool
strong
Enumerator
kNo 
kYes 

Definition at line 65 of file SkImageFilterCache.h.

Constructor & Destructor Documentation

◆ ~SkImageFilterCache()

SkImageFilterCache::~SkImageFilterCache ( )
inlineoverride

Definition at line 61 of file SkImageFilterCache.h.

61{}

Member Function Documentation

◆ Create()

sk_sp< SkImageFilterCache > SkImageFilterCache::Create ( size_t  maxBytes)
static

Definition at line 155 of file SkImageFilterCache.cpp.

155 {
156 return sk_make_sp<CacheImpl>(maxBytes);
157}

◆ get()

virtual bool SkImageFilterCache::get ( const SkImageFilterCacheKey key,
skif::FilterResult result 
) const
pure virtual

◆ Get()

sk_sp< SkImageFilterCache > SkImageFilterCache::Get ( CreateIfNecessary  createIfNecessary = CreateIfNecessary::kYes)
static

Definition at line 159 of file SkImageFilterCache.cpp.

159 {
160 static SkOnce once;
162
163 if (createIfNecessary == CreateIfNecessary::kNo) {
164 return cache;
165 }
166
168 return cache;
169}
@ kDefaultCacheSize
static sk_sp< SkImageFilterCache > Create(size_t maxBytes)
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir Path to the cache directory This is different from the persistent_cache_path in embedder which is used for Skia shader cache icu native lib Path to the library file that exports the ICU data vm service The hostname IP address on which the Dart VM Service should be served If not defaults to or::depending on whether ipv6 is specified vm service A custom Dart VM Service port The default is to pick a randomly available open port disable vm Disable the Dart VM Service The Dart VM Service is never available in release mode disable vm service Disable mDNS Dart VM Service publication Bind to the IPv6 localhost address for the Dart VM Service Ignored if vm service host is set endless trace Enable an endless trace buffer The default is a ring buffer This is useful when very old events need to viewed For during application launch Memory usage will continue to grow indefinitely however Start app with an specific route defined on the framework flutter assets Path to the Flutter assets directory enable service port Allow the VM service to fallback to automatic port selection if binding to a specified port fails trace Trace early application lifecycle Automatically switches to an endless trace buffer trace skia Filters out all Skia trace event categories except those that are specified in this comma separated list dump skp on shader Automatically dump the skp that triggers new shader compilations This is useful for writing custom ShaderWarmUp to reduce jank By this is not enabled to reduce the overhead purge persistent cache
Definition switches.h:191

◆ purge()

virtual void SkImageFilterCache::purge ( )
pure virtual

◆ purgeByImageFilter()

virtual void SkImageFilterCache::purgeByImageFilter ( const SkImageFilter )
pure virtual

◆ set()

virtual void SkImageFilterCache::set ( const SkImageFilterCacheKey key,
const SkImageFilter filter,
const skif::FilterResult result 
)
pure virtual

Member Data Documentation

◆ kDefaultTransientSize

constexpr size_t SkImageFilterCache::kDefaultTransientSize = 32 * 1024 * 1024
staticconstexpr

Definition at line 59 of file SkImageFilterCache.h.


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