Home
last modified time | relevance | path

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

/external/skia/src/gpu/text/
DGrStrikeCache.h28 class GrTextStrike : public SkNVRefCnt<GrTextStrike> {
30 GrTextStrike(const SkDescriptor& fontScalerKey);
64 sk_sp<GrTextStrike> findOrCreateStrike(const SkDescriptor& desc) { in findOrCreateStrike()
65 if (sk_sp<GrTextStrike>* cached = fCache.find(desc)) { in findOrCreateStrike()
74 sk_sp<GrTextStrike> generateStrike(const SkDescriptor& desc) { in generateStrike()
75 sk_sp<GrTextStrike> strike = sk_make_sp<GrTextStrike>(desc); in generateStrike()
81 static const SkDescriptor& GetKey(const sk_sp<GrTextStrike>& strike) { in GetKey()
87 using StrikeHash = SkTHashTable<sk_sp<GrTextStrike>, SkDescriptor, DescriptorHashTraits>;
DGrStrikeCache.cpp35 GrTextStrike::GrTextStrike(const SkDescriptor& key) : fFontScalerKey(key) {} in GrTextStrike() function in GrTextStrike
37 GrGlyph* GrTextStrike::getGlyph(SkPackedGlyphID packedGlyphID) { in getGlyph()
DGrAtlasManager.h17 class GrTextStrike; variable
DGrTextBlob.cpp333 sk_sp<GrTextStrike> fStrike{nullptr};
/external/skqp/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()
109 void setStrikeToPreserve(GrTextStrike* strike) { fPreserveStrike = strike; } in setStrikeToPreserve()
115 sk_sp<GrTextStrike> getStrike(const SkStrike* cache) { in getStrike()
116 sk_sp<GrTextStrike> strike = sk_ref_sp(fCache.find(cache->getDescriptor())); in getStrike()
130 sk_sp<GrTextStrike> generateStrike(const SkStrike* cache) { in generateStrike()
132 sk_sp<GrTextStrike> strike = sk_ref_sp(new GrTextStrike(cache->getDescriptor())); in generateStrike()
137 using StrikeHash = SkTDynamicHash<GrTextStrike, SkDescriptor>;
140 GrTextStrike* fPreserveStrike;
DGrStrikeCache.cpp46 GrTextStrike* strike = &*iter; in HandleEviction()
52 glyphCache->fCache.remove(GrTextStrike::GetKey(*strike)); in HandleEviction()
172 GrTextStrike::GrTextStrike(const SkDescriptor& key) in GrTextStrike() function in GrTextStrike
175 GrGlyph* GrTextStrike::generateGlyph(const SkGlyph& skGlyph) { in generateGlyph()
181 void GrTextStrike::removeID(GrDrawOpAtlas::AtlasID id) { in removeID()
193 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
77 GrResourceProvider*, GrStrikeCache*, GrTextStrike*,
DGrAtlasManager.cpp68 GrTextStrike* strike, GrDrawOpAtlas::AtlasID* id, in addToAtlas()
DGrTextBlob.cpp438 SkASSERT_RELEASE(GrTextStrike::GetKey(*lSubRun.strike()) == in AssertEqual()
439 GrTextStrike::GetKey(*rSubRun.strike())); in AssertEqual()
DGrTextBlobVertexRegenerator.cpp164 sk_sp<GrTextStrike> strike; in doRegen()
/external/skia/src/core/
DSkStrikeSpec.h18 class GrTextStrike; variable
80 sk_sp<GrTextStrike> findOrCreateGrStrike(GrStrikeCache* cache) const;
DSkStrikeSpec.cpp189 sk_sp<GrTextStrike> SkStrikeSpec::findOrCreateGrStrike(GrStrikeCache* cache) const { in findOrCreateGrStrike()
/external/skqp/src/core/
DSkGlyphRunPainter.cpp641 const sk_sp<GrTextStrike>& strike, in switchSubRunIfNeededAndAppendGlyph()
660 void GrTextBlob::Run::appendDeviceSpaceGlyph(const sk_sp<GrTextStrike>& strike, in appendDeviceSpaceGlyph()
672 void GrTextBlob::Run::appendSourceSpaceGlyph(const sk_sp<GrTextStrike>& strike, in appendSourceSpaceGlyph()
706 sk_sp<GrTextStrike> strike = fGrStrikeCache->getStrike(fallbackCache.get()); in generateFromGlyphRunList()
771 sk_sp<GrTextStrike> currStrike = glyphCache->getStrike(cache.get()); in generateFromGlyphRunList()
844 sk_sp<GrTextStrike> currStrike = glyphCache->getStrike(cache); in generateFromGlyphRunList()