Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
SkBulkGlyphMetricsAndImages Class Reference

#include <SkStrikeSpec.h>

Public Member Functions

 SkBulkGlyphMetricsAndImages (const SkStrikeSpec &spec)
 
 SkBulkGlyphMetricsAndImages (sk_sp< SkStrike > &&strike)
 
 ~SkBulkGlyphMetricsAndImages ()
 
SkSpan< const SkGlyph * > glyphs (SkSpan< const SkPackedGlyphID > packedIDs)
 
const SkGlyphglyph (SkPackedGlyphID packedID)
 
const SkDescriptordescriptor () const
 

Detailed Description

Definition at line 158 of file SkStrikeSpec.h.

Constructor & Destructor Documentation

◆ SkBulkGlyphMetricsAndImages() [1/2]

SkBulkGlyphMetricsAndImages::SkBulkGlyphMetricsAndImages ( const SkStrikeSpec spec)
explicit

Definition at line 239 of file SkStrikeSpec.cpp.

240 : fStrike{spec.findOrCreateStrike()} { }
sk_sp< SkStrike > findOrCreateStrike() const

◆ SkBulkGlyphMetricsAndImages() [2/2]

SkBulkGlyphMetricsAndImages::SkBulkGlyphMetricsAndImages ( sk_sp< SkStrike > &&  strike)
explicit

Definition at line 242 of file SkStrikeSpec.cpp.

243 : fStrike{std::move(strike)} { }

◆ ~SkBulkGlyphMetricsAndImages()

SkBulkGlyphMetricsAndImages::~SkBulkGlyphMetricsAndImages ( )
default

Member Function Documentation

◆ descriptor()

const SkDescriptor & SkBulkGlyphMetricsAndImages::descriptor ( ) const

Definition at line 256 of file SkStrikeSpec.cpp.

256 {
257 return fStrike->getDescriptor();
258}
const SkDescriptor & getDescriptor() const override
Definition: SkStrike.h:103

◆ glyph()

const SkGlyph * SkBulkGlyphMetricsAndImages::glyph ( SkPackedGlyphID  packedID)

Definition at line 252 of file SkStrikeSpec.cpp.

252 {
253 return this->glyphs(SkSpan<const SkPackedGlyphID>{&packedID, 1})[0];
254}
SkSpan< const SkGlyph * > glyphs(SkSpan< const SkPackedGlyphID > packedIDs)

◆ glyphs()

SkSpan< const SkGlyph * > SkBulkGlyphMetricsAndImages::glyphs ( SkSpan< const SkPackedGlyphID packedIDs)

Definition at line 247 of file SkStrikeSpec.cpp.

247 {
248 fGlyphs.reset(glyphIDs.size());
249 return fStrike->prepareImages(glyphIDs, fGlyphs.get());
250}
SkSpan< const SkGlyph * > prepareImages(SkSpan< const SkPackedGlyphID > glyphIDs, const SkGlyph *results[]) SK_EXCLUDES(fStrikeLock)
Definition: SkStrike.cpp:230
void reset(int count)
Definition: SkTemplates.h:195

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