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

#include <SkStrikeSpec.h>

Public Member Functions

 SkBulkGlyphMetricsAndDrawables (const SkStrikeSpec &spec)
 
 SkBulkGlyphMetricsAndDrawables (sk_sp< SkStrike > &&strike)
 
 ~SkBulkGlyphMetricsAndDrawables ()
 
SkSpan< const SkGlyph * > glyphs (SkSpan< const SkGlyphID > glyphIDs)
 
const SkGlyphglyph (SkGlyphID glyphID)
 

Detailed Description

Definition at line 144 of file SkStrikeSpec.h.

Constructor & Destructor Documentation

◆ SkBulkGlyphMetricsAndDrawables() [1/2]

SkBulkGlyphMetricsAndDrawables::SkBulkGlyphMetricsAndDrawables ( const SkStrikeSpec spec)
explicit

Definition at line 222 of file SkStrikeSpec.cpp.

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

◆ SkBulkGlyphMetricsAndDrawables() [2/2]

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

Definition at line 225 of file SkStrikeSpec.cpp.

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

◆ ~SkBulkGlyphMetricsAndDrawables()

SkBulkGlyphMetricsAndDrawables::~SkBulkGlyphMetricsAndDrawables ( )
default

Member Function Documentation

◆ glyph()

const SkGlyph * SkBulkGlyphMetricsAndDrawables::glyph ( SkGlyphID  glyphID)

Definition at line 235 of file SkStrikeSpec.cpp.

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

◆ glyphs()

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

Definition at line 230 of file SkStrikeSpec.cpp.

230 {
231 fGlyphs.reset(glyphIDs.size());
232 return fStrike->prepareDrawables(glyphIDs, fGlyphs.get());
233}
constexpr size_t size() const
Definition: SkSpan_impl.h:95
SkSpan< const SkGlyph * > prepareDrawables(SkSpan< const SkGlyphID > glyphIDs, const SkGlyph *results[]) SK_EXCLUDES(fStrikeLock)
Definition: SkStrike.cpp:243
void reset(int count)
Definition: SkTemplates.h:195

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