Home
last modified time | relevance | path

Searched refs:GrTextBlob (Results 1 – 25 of 26) sorted by relevance

12

/external/skqp/src/gpu/text/
DGrTextBlobCache.h36 sk_sp<GrTextBlob> makeBlob(const SkGlyphRunList& glyphRunList, GrColor color) { in makeBlob()
37 return GrTextBlob::Make(glyphRunList.totalGlyphCount(), glyphRunList.size(), color); in makeBlob()
40 sk_sp<GrTextBlob> makeCachedBlob(const SkGlyphRunList& glyphRunList, in makeCachedBlob()
41 const GrTextBlob::Key& key, in makeCachedBlob()
45 sk_sp<GrTextBlob> cacheBlob(makeBlob(glyphRunList, color)); in makeCachedBlob()
52 sk_sp<GrTextBlob> find(const GrTextBlob::Key& key) const { in find()
57 void remove(GrTextBlob* blob) { in remove()
58 auto id = GrTextBlob::GetKey(*blob).fUniqueID; in remove()
70 void makeMRU(GrTextBlob* blob) { in makeMRU()
109 using BitmapBlobList = SkTInternalLList<GrTextBlob>;
[all …]
DGrTextBlob.cpp26 sk_sp<GrTextBlob> GrTextBlob::Make(int glyphCount, int runCount, GrColor color) { in Make()
32 size_t vertex = sk_align<alignof(char)> (blobStart + sizeof(GrTextBlob) * 1); in Make()
34 size_t runs = sk_align<alignof(GrTextBlob::Run)>(glyphs + sizeof(GrGlyph*) * glyphCount); in Make()
35 size_t size = (runs + sizeof(GrTextBlob::Run) * runCount); in Make()
43 sk_sp<GrTextBlob> blob{new (allocation) GrTextBlob{}}; in Make()
49 blob->fRuns = SkTAddOffset<GrTextBlob::Run>(blob.get(), runs); in Make()
53 new (&blob->fRuns[i]) GrTextBlob::Run{blob.get(), color}; in Make()
59 void GrTextBlob::Run::setupFont(const SkPaint& skPaint, in setupFont()
73 void GrTextBlob::Run::appendPathGlyph(const SkPath& path, SkPoint position, in appendPathGlyph()
78 bool GrTextBlob::mustRegenerate(const SkPaint& paint, bool anyRunHasSubpixelPosition, in mustRegenerate()
[all …]
DGrTextBlob.h51 class GrTextBlob : public SkNVRefCnt<GrTextBlob> {
54 SK_DECLARE_INTERNAL_LLIST_INTERFACE(GrTextBlob);
68 static sk_sp<GrTextBlob> Make(int glyphCount, int runCount, GrColor color);
96 void setupKey(const GrTextBlob::Key& key, in setupKey()
110 static const Key& GetKey(const GrTextBlob& blob) { in GetKey()
219 static void AssertEqual(const GrTextBlob&, const GrTextBlob&);
238 ~GrTextBlob() { in ~GrTextBlob()
253 GrTextBlob() in GrTextBlob() function
403 explicit Run(GrTextBlob* blob, GrColor color) in Run()
512 GrTextBlob* const fBlob;
[all …]
DGrTextBlobVertexRegenerator.cpp118 GrTextBlob::VertexRegenerator::VertexRegenerator(GrResourceProvider* resourceProvider, in VertexRegenerator()
119 GrTextBlob* blob, in VertexRegenerator()
160 bool GrTextBlob::VertexRegenerator::doRegen(GrTextBlob::VertexRegenerator::Result* result, in doRegen()
260 bool GrTextBlob::VertexRegenerator::regenerate(GrTextBlob::VertexRegenerator::Result* result) { in regenerate()
DGrTextContext.h23 class GrTextBlob; variable
67 GrTextBlob* blob,
DGrTextBlobCache.cpp63 void GrTextBlobCache::checkPurge(GrTextBlob* blob) { in checkPurge()
71 GrTextBlob* lruBlob = nullptr; in checkPurge()
DGrTextContext.cpp135 GrTextBlob* blob, in InitDistanceFieldPaint()
/external/skia/src/gpu/text/
DGrTextBlobCache.h36 sk_sp<GrTextBlob> makeBlob(const SkGlyphRunList& glyphRunList, in makeBlob()
41 return GrTextBlob::Make( in makeBlob()
49 sk_sp<GrTextBlob> makeCachedBlob(const SkGlyphRunList& glyphRunList, in makeCachedBlob()
51 const GrTextBlob::Key& key, in makeCachedBlob()
56 sk_sp<GrTextBlob> cacheBlob( in makeCachedBlob()
64 sk_sp<GrTextBlob> find(const GrTextBlob::Key& key) const { in find()
69 void remove(GrTextBlob* blob) { in remove()
70 auto id = GrTextBlob::GetKey(*blob).fUniqueID; in remove()
82 void makeMRU(GrTextBlob* blob) { in makeMRU()
121 using BitmapBlobList = SkTInternalLList<GrTextBlob>;
[all …]
DGrTextBlob.cpp34 GrTextBlob::Key::Key() { sk_bzero(this, sizeof(Key)); } in Key()
36 bool GrTextBlob::Key::operator==(const GrTextBlob::Key& other) const { in operator ==()
41 GrTextBlob::PathGlyph::PathGlyph(const SkPath& path, SkPoint origin) in PathGlyph()
46 GrTextBlob::SubRun::SubRun(SubRunType type, GrTextBlob* textBlob, const SkStrikeSpec& strikeSpec, in SubRun()
64 GrTextBlob::SubRun::SubRun(GrTextBlob* textBlob, const SkStrikeSpec& strikeSpec) in SubRun()
77 void GrTextBlob::SubRun::appendGlyphs(const SkZip<SkGlyphVariant, SkPoint>& drawables) { in appendGlyphs()
125 void GrTextBlob::SubRun::resetBulkUseToken() { fBulkUseToken.reset(); } in resetBulkUseToken()
127 GrDrawOpAtlas::BulkUseTokenUpdater* GrTextBlob::SubRun::bulkUseToken() { return &fBulkUseToken; } in bulkUseToken()
128 void GrTextBlob::SubRun::setStrike(sk_sp<GrTextStrike> strike) { fStrike = std::move(strike); } in setStrike()
129 GrTextStrike* GrTextBlob::SubRun::strike() const { return fStrike.get(); } in strike()
[all …]
DGrTextBlob.h59 class GrTextBlob final : public SkNVRefCnt<GrTextBlob>, public SkGlyphRunPainterInterface {
95 SK_DECLARE_INTERNAL_LLIST_INTERFACE(GrTextBlob);
103 ~GrTextBlob() override;
107 static sk_sp<GrTextBlob> Make(const SkGlyphRunList& glyphRunList,
114 void setupKey(const GrTextBlob::Key& key,
117 static const Key& GetKey(const GrTextBlob& blob);
212 GrTextBlob(size_t allocSize,
292 class GrTextBlob::VertexRegenerator {
299 VertexRegenerator(GrResourceProvider*, GrTextBlob::SubRun* subRun,
319 class GrTextBlob::SubRun {
[all …]
DGrTextBlobCache.cpp63 void GrTextBlobCache::checkPurge(GrTextBlob* blob) { in checkPurge()
71 GrTextBlob* lruBlob = nullptr; in checkPurge()
DGrTextContext.h24 class GrTextBlob; variable
/external/skia/src/gpu/ops/
DGrAtlasTextOp.h28 static const int kVerticesPerGlyph = GrTextBlob::kVerticesPerGlyph;
34 GrTextBlob* fBlob;
36 GrTextBlob::SubRun* fSubRunPtr;
DGrAtlasTextOp.cpp366 GrTextBlob::VertexRegenerator regenerator( in onPrepareDraws()
586 that->fGeoData.get()[i].fBlob = (GrTextBlob*)0x1; in onCombineIfPossible()
/external/skqp/src/core/
DSkGlyphRunPainter.cpp534 sk_sp<GrTextBlob> cacheBlob; in drawGlyphRunList()
535 GrTextBlob::Key key; in drawGlyphRunList()
574 sk_sp<GrTextBlob> sanityBlob(textBlobCache->makeBlob(glyphRunList, color)); in drawGlyphRunList()
580 GrTextBlob::AssertEqual(*sanityBlob, *cacheBlob); in drawGlyphRunList()
599 void GrTextBlob::SubRun::appendGlyph(GrGlyph* glyph, SkRect dstRect) { in appendGlyph()
603 GrTextBlob* blob = fRun->fBlob; in appendGlyph()
640 void GrTextBlob::Run::switchSubRunIfNeededAndAppendGlyph(GrGlyph* glyph, 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()
686 void GrTextBlob::generateFromGlyphRunList(GrStrikeCache* glyphCache, in generateFromGlyphRunList()
[all …]
/external/skqp/src/gpu/ops/
DGrAtlasTextOp.h28 static const int kVerticesPerGlyph = GrTextBlob::kVerticesPerGlyph;
31 typedef GrTextBlob Blob;
DGrAtlasTextOp.cpp345 GrTextBlob::VertexRegenerator regenerator( in onPrepareDraws()
351 GrTextBlob::VertexRegenerator::Result result; in onPrepareDraws()
/external/skia/src/core/
DSkGlyphRunPainter.cpp305 sk_sp<GrTextBlob> cachedBlob; in drawGlyphRunList()
306 GrTextBlob::Key key; in drawGlyphRunList()
398 sk_sp<GrTextBlob> blob; in createOp_TestingOnly()
/external/skqp/src/atlastext/
DSkAtlasTextTarget.cpp233 GrTextBlob::VertexRegenerator regenerator( in executeForTextTarget()
240 GrTextBlob::VertexRegenerator::Result result; in executeForTextTarget()
/external/skia/include/core/
DSkFont.h513 friend class GrTextBlob; variable
/external/skqp/include/core/
DSkFont.h510 friend class GrTextBlob; variable
/external/skia/src/atlastext/
DSkAtlasTextTarget.cpp240 GrTextBlob::VertexRegenerator regenerator( in executeForTextTarget()
/external/skqp/gn/
Dgpu.gni405 "$_src/gpu/text/GrTextBlob.cpp",
406 "$_src/gpu/text/GrTextBlob.h",
/external/skia/gn/
Dgpu.gni446 "$_src/gpu/text/GrTextBlob.cpp",
447 "$_src/gpu/text/GrTextBlob.h",
/external/skqp/
DAndroid.bp1017 "src/gpu/text/GrTextBlob.cpp",

12