Home
last modified time | relevance | path

Searched refs:GrTextStrike (Results 1 – 18 of 18) sorted by relevance

/third_party/skia/src/gpu/text/
DGrStrikeCache.cpp21 sk_sp<GrTextStrike> GrStrikeCache::findOrCreateStrike(const SkStrikeSpec& strikeSpec) { in findOrCreateStrike()
22 if (sk_sp<GrTextStrike>* cached = fCache.find(strikeSpec.descriptor())) { in findOrCreateStrike()
28 sk_sp<GrTextStrike> GrStrikeCache::generateStrike(const SkStrikeSpec& strikeSpec) { in generateStrike()
29 sk_sp<GrTextStrike> strike = sk_make_sp<GrTextStrike>(strikeSpec); in generateStrike()
34 const SkDescriptor& GrStrikeCache::HashTraits::GetKey(const sk_sp<GrTextStrike>& strike) { in GetKey()
42 GrTextStrike::GrTextStrike(const SkStrikeSpec& strikeSpec) : fStrikeSpec{strikeSpec} {} in GrTextStrike() function in GrTextStrike
44 GrGlyph* GrTextStrike::getGlyph(SkPackedGlyphID packedGlyphID) { in getGlyph()
53 const SkPackedGlyphID& GrTextStrike::HashTraits::GetKey(const GrGlyph* glyph) { in GetKey()
57 uint32_t GrTextStrike::HashTraits::Hash(SkPackedGlyphID key) { in Hash()
DGrStrikeCache.h23 class GrTextStrike : public SkNVRefCnt<GrTextStrike> {
25 GrTextStrike(const SkStrikeSpec& strikeSpec);
54 sk_sp<GrTextStrike> findOrCreateStrike(const SkStrikeSpec& strikeSpec);
59 sk_sp<GrTextStrike> generateStrike(const SkStrikeSpec& strikeSpec);
62 static const SkDescriptor& GetKey(const sk_sp<GrTextStrike>& strike);
66 using StrikeHash = SkTHashTable<sk_sp<GrTextStrike>, const SkDescriptor&, HashTraits>;
DGrAtlasManager.h19 class GrTextStrike; variable
DGrTextBlob.cpp338 sk_sp<GrTextStrike> fGrStrike{nullptr};
/third_party/flutter/skia/src/gpu/text/
DGrStrikeCache.h29 class GrTextStrike : public SkNVRefCnt<GrTextStrike> {
31 GrTextStrike(const SkDescriptor& fontScalerKey);
77 static const SkDescriptor& GetKey(const GrTextStrike& strike) { in GetKey()
103 void setStrikeToPreserve(GrTextStrike* strike) { fPreserveStrike = strike; } in setStrikeToPreserve()
109 sk_sp<GrTextStrike> getStrike(const SkDescriptor& desc) { in getStrike()
110 sk_sp<GrTextStrike> strike = sk_ref_sp(fCache.find(desc)); in getStrike()
124 sk_sp<GrTextStrike> generateStrike(const SkDescriptor& desc) { in generateStrike()
126 sk_sp<GrTextStrike> strike = sk_ref_sp(new GrTextStrike(desc)); in generateStrike()
131 using StrikeHash = SkTDynamicHash<GrTextStrike, SkDescriptor>;
134 GrTextStrike* fPreserveStrike;
DGrStrikeCache.cpp46 GrTextStrike* strike = &*iter; in HandleEviction()
52 grStrikeCache->fCache.remove(GrTextStrike::GetKey(*strike)); in HandleEviction()
172 GrTextStrike::GrTextStrike(const SkDescriptor& key) in GrTextStrike() function in GrTextStrike
175 void GrTextStrike::removeID(GrDrawOpAtlas::AtlasID id) { in removeID()
187 GrDrawOpAtlas::ErrorCode GrTextStrike::addGlyphToAtlas( in addGlyphToAtlas()
DGrTextBlob.h292 void setStrike(sk_sp<GrTextStrike> strike) { fStrike = std::move(strike); } in setStrike()
293 GrTextStrike* strike() const { return fStrike.get(); } in strike()
294 sk_sp<GrTextStrike> refStrike() const { return fStrike; } in refStrike()
355 sk_sp<GrTextStrike> fStrike;
432 const sk_sp<GrTextStrike>& strike,
438 void appendDeviceSpaceGlyph(const sk_sp<GrTextStrike>& strike,
443 void appendSourceSpaceGlyph(const sk_sp<GrTextStrike>& strike,
DGrAtlasManager.h17 class GrTextStrike; variable
91 GrResourceProvider*, GrStrikeCache*, GrTextStrike*,
DGrTextBlob.cpp417 SkASSERT_RELEASE(GrTextStrike::GetKey(*lSubRun.strike()) == in AssertEqual()
418 GrTextStrike::GetKey(*rSubRun.strike())); in AssertEqual()
DGrAtlasManager.cpp57 GrTextStrike* strike, GrDrawOpAtlas::AtlasID* id, in addToAtlas()
DGrTextBlobVertexRegenerator.cpp178 sk_sp<GrTextStrike> strike; in doRegen()
/third_party/skia/src/core/
DSkStrikeSpec.h21 class GrTextStrike; variable
81 sk_sp<GrTextStrike> findOrCreateGrStrike(GrStrikeCache* cache) const;
DSkStrikeCache.h117 sk_sp<GrTextStrike> findOrCreateGrStrike(GrStrikeCache* grStrikeCache) const;
DSkStrikeSpec.cpp195 sk_sp<GrTextStrike> SkStrikeSpec::findOrCreateGrStrike(GrStrikeCache* cache) const { in findOrCreateGrStrike()
DSkStrikeCache.cpp348 sk_sp<GrTextStrike> SkStrike::findOrCreateGrStrike(GrStrikeCache* grStrikeCache) const { in findOrCreateGrStrike()
/third_party/flutter/skia/src/core/
DSkGlyphRunPainter.cpp760 const sk_sp<GrTextStrike>& strike, in switchSubRunIfNeededAndAppendGlyph()
779 void GrTextBlob::Run::appendDeviceSpaceGlyph(const sk_sp<GrTextStrike>& strike, in appendDeviceSpaceGlyph()
791 void GrTextBlob::Run::appendSourceSpaceGlyph(const sk_sp<GrTextStrike>& strike, in appendSourceSpaceGlyph()
843 sk_sp<GrTextStrike> currStrike = strikeSpec.findOrCreateGrStrike(fStrikeCache); in processDeviceMasks()
891 sk_sp<GrTextStrike> currStrike = strikeSpec.findOrCreateGrStrike(fStrikeCache); in processSourceSDFT()
904 sk_sp<GrTextStrike> grStrike = strikeSpec.findOrCreateGrStrike(fStrikeCache); in processSourceFallback()
920 sk_sp<GrTextStrike> grStrike = strikeSpec.findOrCreateGrStrike(fStrikeCache); in processDeviceFallback()
DSkStrikeSpec.h71 sk_sp<GrTextStrike> findOrCreateGrStrike(GrStrikeCache* cache) const;
DSkStrikeSpec.cpp202 sk_sp<GrTextStrike> SkStrikeSpec::findOrCreateGrStrike(GrStrikeCache* cache) const { in findOrCreateGrStrike()