Flutter Engine
The Flutter Engine
Classes | Public Types | Public Member Functions | List of all members
SkStrikeClient Class Reference

#include <SkChromeRemoteGlyphCache.h>

Classes

class  DiscardableHandleManager
 

Public Types

enum  CacheMissType : uint32_t {
  kFontMetrics = 0 , kGlyphMetrics = 1 , kGlyphImage = 2 , kGlyphPath = 3 ,
  kGlyphMetricsFallback = 4 , kGlyphPathFallback = 5 , kGlyphDrawable = 6 , kLast = kGlyphDrawable
}
 

Public Member Functions

SK_SPI SkStrikeClient (sk_sp< DiscardableHandleManager >, bool isLogging=true, SkStrikeCache *strikeCache=nullptr)
 
SK_SPI ~SkStrikeClient ()
 
SK_SPI bool readStrikeData (const volatile void *memory, size_t memorySize)
 
SK_SPI bool translateTypefaceID (SkAutoDescriptor *descriptor) const
 
sk_sp< SkTypefaceretrieveTypefaceUsingServerIDForTest (SkTypefaceID) const
 
sk_sp< sktext::gpu::SlugdeserializeSlugForTest (const void *data, size_t size) const
 

Detailed Description

Definition at line 82 of file SkChromeRemoteGlyphCache.h.

Member Enumeration Documentation

◆ CacheMissType

Enumerator
kFontMetrics 
kGlyphMetrics 
kGlyphImage 
kGlyphPath 
kGlyphMetricsFallback 
kGlyphPathFallback 
kGlyphDrawable 
kLast 

Definition at line 86 of file SkChromeRemoteGlyphCache.h.

86 : uint32_t {
87 // Hard failures where no fallback could be found.
88 kFontMetrics = 0,
89 kGlyphMetrics = 1,
90 kGlyphImage = 2,
91 kGlyphPath = 3,
92
93 // (DEPRECATED) The original glyph could not be found and a fallback was used.
96
99 };

Constructor & Destructor Documentation

◆ SkStrikeClient()

SkStrikeClient::SkStrikeClient ( sk_sp< DiscardableHandleManager discardableManager,
bool  isLogging = true,
SkStrikeCache strikeCache = nullptr 
)
explicit

Definition at line 797 of file SkChromeRemoteGlyphCache.cpp.

800 : fImpl{new SkStrikeClientImpl{std::move(discardableManager), isLogging, strikeCache}} {}

◆ ~SkStrikeClient()

SkStrikeClient::~SkStrikeClient ( )
default

Member Function Documentation

◆ deserializeSlugForTest()

sk_sp< sktext::gpu::Slug > SkStrikeClient::deserializeSlugForTest ( const void *  data,
size_t  size 
) const

Definition at line 817 of file SkChromeRemoteGlyphCache.cpp.

818 {
820}
static sk_sp< Slug > Deserialize(const void *data, size_t size, const SkStrikeClient *client=nullptr)
Definition: Slug.cpp:42
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
std::shared_ptr< const fml::Mapping > data
Definition: texture_gles.cc:63

◆ readStrikeData()

bool SkStrikeClient::readStrikeData ( const volatile void *  memory,
size_t  memorySize 
)

Definition at line 804 of file SkChromeRemoteGlyphCache.cpp.

804 {
805 return fImpl->readStrikeData(memory, memorySize);
806}

◆ retrieveTypefaceUsingServerIDForTest()

sk_sp< SkTypeface > SkStrikeClient::retrieveTypefaceUsingServerIDForTest ( SkTypefaceID  typefaceID) const

Definition at line 808 of file SkChromeRemoteGlyphCache.cpp.

809 {
810 return fImpl->retrieveTypefaceUsingServerID(typefaceID);
811}

◆ translateTypefaceID()

bool SkStrikeClient::translateTypefaceID ( SkAutoDescriptor descriptor) const

Definition at line 813 of file SkChromeRemoteGlyphCache.cpp.

813 {
814 return fImpl->translateTypefaceID(descriptor);
815}

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