Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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
AutoTArray< uint8_t > data((int) size)

◆ 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: