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

#include <SkStrikeSpec.h>

Public Member Functions

 SkBulkGlyphMetrics (const SkStrikeSpec &spec)
 
 ~SkBulkGlyphMetrics ()
 
SkSpan< const SkGlyph * > glyphs (SkSpan< const SkGlyphID > glyphIDs)
 
const SkGlyphglyph (SkGlyphID glyphID)
 

Detailed Description

Definition at line 115 of file SkStrikeSpec.h.

Constructor & Destructor Documentation

◆ SkBulkGlyphMetrics()

SkBulkGlyphMetrics::SkBulkGlyphMetrics ( const SkStrikeSpec spec)
explicit

Definition at line 183 of file SkStrikeSpec.cpp.

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

◆ ~SkBulkGlyphMetrics()

SkBulkGlyphMetrics::~SkBulkGlyphMetrics ( )
default

Member Function Documentation

◆ glyph()

const SkGlyph * SkBulkGlyphMetrics::glyph ( SkGlyphID  glyphID)

Definition at line 193 of file SkStrikeSpec.cpp.

193 {
194 return this->glyphs(SkSpan<const SkGlyphID>{&glyphID, 1})[0];
195}
SkSpan< const SkGlyph * > glyphs(SkSpan< const SkGlyphID > glyphIDs)

◆ glyphs()

SkSpan< const SkGlyph * > SkBulkGlyphMetrics::glyphs ( SkSpan< const SkGlyphID glyphIDs)

Definition at line 188 of file SkStrikeSpec.cpp.

188 {
189 fGlyphs.reset(glyphIDs.size());
190 return fStrike->metrics(glyphIDs, fGlyphs.get());
191}
constexpr size_t size() const
Definition: SkSpan_impl.h:95
SkSpan< const SkGlyph * > metrics(SkSpan< const SkGlyphID > glyphIDs, const SkGlyph *results[]) SK_EXCLUDES(fStrikeLock)
Definition: SkStrike.cpp:218
void reset(int count)
Definition: SkTemplates.h:195

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