Home
last modified time | relevance | path

Searched refs:strikeSpec (Results 1 – 21 of 21) sorted by relevance

/third_party/skia/src/gpu/text/
DGrStrikeCache.cpp21 sk_sp<GrTextStrike> GrStrikeCache::findOrCreateStrike(const SkStrikeSpec& strikeSpec) { in findOrCreateStrike() argument
22 if (sk_sp<GrTextStrike>* cached = fCache.find(strikeSpec.descriptor())) { in findOrCreateStrike()
25 return this->generateStrike(strikeSpec); in findOrCreateStrike()
28 sk_sp<GrTextStrike> GrStrikeCache::generateStrike(const SkStrikeSpec& strikeSpec) { in generateStrike() argument
29 sk_sp<GrTextStrike> strike = sk_make_sp<GrTextStrike>(strikeSpec); in generateStrike()
42 GrTextStrike::GrTextStrike(const SkStrikeSpec& strikeSpec) : fStrikeSpec{strikeSpec} {} in GrTextStrike() argument
DGrStrikeCache.h25 GrTextStrike(const SkStrikeSpec& strikeSpec);
28 const SkStrikeSpec& strikeSpec() const { return fStrikeSpec; } in strikeSpec() function
54 sk_sp<GrTextStrike> findOrCreateStrike(const SkStrikeSpec& strikeSpec);
59 sk_sp<GrTextStrike> generateStrike(const SkStrikeSpec& strikeSpec);
63 static uint32_t Hash(const SkDescriptor& strikeSpec);
DGrTextBlob.cpp365 fGrStrike = cache->findOrCreateStrike(fStrike->strikeSpec()); in packedGlyphIDToGrGlyph()
393 SkBulkGlyphMetricsAndImages metricsAndImages{fGrStrike->strikeSpec()}; in regenerateAtlas()
/third_party/skia/src/core/
DSkGlyphRunPainter.cpp103 auto [strikeSpec, strikeToSourceScale] = in drawForBitmapDevice()
106 auto strike = strikeSpec.findOrCreateStrike(); in drawForBitmapDevice()
121 SkStrikeSpec strikeSpec = SkStrikeSpec::MakeMask( in drawForBitmapDevice() local
124 auto strike = strikeSpec.findOrCreateStrike(); in drawForBitmapDevice()
175 SkStrikeSpec strikeSpec = SkStrikeSpec::MakeMask( in drawForBitmapDevice() local
178 auto strike = strikeSpec.findOrCreateStrike(); in drawForBitmapDevice()
249 const auto& [strikeSpec, strikeToSourceScale, minScale, maxScale] = in processGlyphRun()
253 msg.appendf(" SDFT case:\n%s", strikeSpec.dump().c_str()); in processGlyphRun()
257 SkScopedStrikeForGPU strike = strikeSpec.findOrCreateScopedStrike(fStrikeCache); in processGlyphRun()
281 SkStrikeSpec strikeSpec = SkStrikeSpec::MakeMask( in processGlyphRun() local
[all …]
DSkStrikeCache.cpp36 auto SkStrikeCache::findOrCreateStrike(const SkStrikeSpec& strikeSpec) -> sk_sp<SkStrike> { in findOrCreateStrike() argument
38 sk_sp<SkStrike> strike = this->internalFindStrikeOrNull(strikeSpec.descriptor()); in findOrCreateStrike()
40 strike = this->internalCreateStrike(strikeSpec); in findOrCreateStrike()
46 SkScopedStrikeForGPU SkStrikeCache::findOrCreateScopedStrike(const SkStrikeSpec& strikeSpec) { in findOrCreateScopedStrike() argument
47 return SkScopedStrikeForGPU{this->findOrCreateStrike(strikeSpec).release()}; in findOrCreateScopedStrike()
153 const SkStrikeSpec& strikeSpec, in createStrike() argument
157 return this->internalCreateStrike(strikeSpec, maybeMetrics, std::move(pinner)); in createStrike()
161 const SkStrikeSpec& strikeSpec, in internalCreateStrike() argument
164 std::unique_ptr<SkScalerContext> scaler = strikeSpec.createScalerContext(); in internalCreateStrike()
166 sk_make_sp<SkStrike>(this, strikeSpec, std::move(scaler), maybeMetrics, std::move(pinner)); in internalCreateStrike()
DSkFont.cpp172 auto [strikeSpec, strikeToSourceScale] = SkStrikeSpec::MakeCanonicalized(*this, paint); in measureText()
173 SkBulkGlyphMetrics metrics{strikeSpec}; in measureText()
210 auto [strikeSpec, strikeToSourceScale] = SkStrikeSpec::MakeCanonicalized(*this, paint); in getWidthsBounds()
211 SkBulkGlyphMetrics metrics{strikeSpec}; in getWidthsBounds()
231 auto [strikeSpec, strikeToSourceScale] = SkStrikeSpec::MakeCanonicalized(*this); in getPos()
232 SkBulkGlyphMetrics metrics{strikeSpec}; in getPos()
245 auto [strikeSpec, strikeToSourceScale] = SkStrikeSpec::MakeCanonicalized(*this); in getXPos()
246 SkBulkGlyphMetrics metrics{strikeSpec}; in getXPos()
263 SkStrikeSpec strikeSpec = SkStrikeSpec::MakeWithNoDevice(font); in getPaths() local
264 SkBulkGlyphMetricsAndPaths paths{strikeSpec}; in getPaths()
[all …]
DSkRemoteGlyphCache.cpp239 RemoteStrike(const SkStrikeSpec& strikeSpec,
251 void setStrikeSpec(const SkStrikeSpec& strikeSpec);
356 const SkStrikeSpec& strikeSpec, in RemoteStrike() argument
359 : fDescriptor{strikeSpec.descriptor()} in RemoteStrike()
435 void RemoteStrike::setStrikeSpec(const SkStrikeSpec& strikeSpec) { in setStrikeSpec() argument
436 fStrikeSpec = &strikeSpec; in setStrikeSpec()
586 SkScopedStrikeForGPU findOrCreateScopedStrike(const SkStrikeSpec& strikeSpec) override;
597 RemoteStrike* getOrCreateCache(const SkStrikeSpec& strikeSpec);
702 SkScopedStrikeForGPU SkStrikeServerImpl::findOrCreateScopedStrike(const SkStrikeSpec& strikeSpec) { in findOrCreateScopedStrike() argument
703 return SkScopedStrikeForGPU{this->getOrCreateCache(strikeSpec)}; in findOrCreateScopedStrike()
[all …]
DSkStrikeCache.h43 const SkStrikeSpec& strikeSpec, in SkStrike() argument
47 : fStrikeSpec(strikeSpec) in SkStrike()
112 const SkStrikeSpec& strikeSpec() const { in strikeSpec() function
167 const SkStrikeSpec& strikeSpec,
171 sk_sp<SkStrike> findOrCreateStrike(const SkStrikeSpec& strikeSpec) SK_EXCLUDES(fLock);
174 const SkStrikeSpec& strikeSpec) override SK_EXCLUDES(fLock);
197 const SkStrikeSpec& strikeSpec,
DSkGlyphRun.cpp49 auto [strikeSpec, strikeToSourceScale] = SkStrikeSpec::MakeCanonicalized(fFont, &paint); in sourceBounds()
50 SkBulkGlyphMetrics metrics{strikeSpec}; in sourceBounds()
176 SkStrikeSpec strikeSpec = SkStrikeSpec::MakeWithNoDevice(font); in draw_text_positions() local
177 SkBulkGlyphMetrics storage{strikeSpec}; in draw_text_positions()
DSkStrikeForGPU.h72 virtual SkScopedStrikeForGPU findOrCreateScopedStrike(const SkStrikeSpec& strikeSpec) = 0;
DSkStrikeSpec.cpp190 SkStrikeSpec strikeSpec(dfFont, dfPaint, surfaceProps, flags, SkMatrix::I()); in MakeSDFT() local
192 return std::make_tuple(std::move(strikeSpec), strikeToSourceScale, minScale, maxScale); in MakeSDFT()
DSkTextBlob.cpp932 SkStrikeSpec strikeSpec = SkStrikeSpec::MakeWithNoDevice(interceptFont, &interceptPaint); in get_glyph_run_intercepts() local
933 SkBulkGlyphMetricsAndPaths metricsAndPaths{strikeSpec}; in get_glyph_run_intercepts()
/third_party/skia/tests/
DSkStrikeCacheTest.cpp25 SkStrikeSpec strikeSpec = SkStrikeSpec::MakeMask( in DEF_TEST() local
33 sk_sp<SkStrike> strike = strikeSpec.findOrCreateStrike(&cache); in DEF_TEST()
47 sk_sp<SkStrike> strike = strikeSpec.findOrCreateStrike(&cache); in DEF_TEST()
DSkScalerCacheTest.cpp52 SkStrikeSpec strikeSpec = SkStrikeSpec::MakeMask( in DEF_TEST() local
59 SkScalerCache scalerCache{strikeSpec.createScalerContext()}; in DEF_TEST()
/third_party/skia/bench/
DPathTextBench.cpp50 SkStrikeSpec strikeSpec = SkStrikeSpec::MakeWithNoDevice(defaultFont); in onDelayedSetup() local
51 auto strike = strikeSpec.findOrCreateStrike(); in onDelayedSetup()
DSkGlyphCacheBench.cpp26 auto strikeSpec = SkStrikeSpec::MakeMask( in do_font_stuff() local
35 SkBulkGlyphMetricsAndImages images{strikeSpec}; in do_font_stuff()
/third_party/skia/src/pdf/
DSkPDFMakeCIDGlyphWidthsArray.cpp105 SkStrikeSpec strikeSpec = SkStrikeSpec::MakePDFVector(typeface, &emSize); in SkPDFMakeCIDGlyphWidthsArray() local
106 SkBulkGlyphMetricsAndPaths paths{strikeSpec}; in SkPDFMakeCIDGlyphWidthsArray()
DSkPDFType1Font.cpp311 SkStrikeSpec strikeSpec = SkStrikeSpec::MakePDFVector(*typeface, &emSize); in SkPDFEmitType1Font() local
312 SkBulkGlyphMetrics metrics{strikeSpec}; in SkPDFEmitType1Font()
DSkPDFFont.cpp541 SkStrikeSpec strikeSpec = SkStrikeSpec::MakePDFVector(*typeface, &unitsPerEm); in emit_subset_type3() local
542 auto strike = strikeSpec.findOrCreateStrike(); in emit_subset_type3()
549 : strikeSpec; in emit_subset_type3()
DSkPDFDevice.cpp847 SkStrikeSpec strikeSpec = SkStrikeSpec::MakePDFVector(*typeface, &emSize); in internalDrawGlyphRun() local
879 SkBulkGlyphMetricsAndPaths paths{strikeSpec}; in internalDrawGlyphRun()
/third_party/skia/samplecode/
DSamplePathText.cpp38 SkStrikeSpec strikeSpec = SkStrikeSpec::MakeWithNoDevice(defaultFont); in onOnceBeforeDraw() local
39 auto strike = strikeSpec.findOrCreateStrike(); in onOnceBeforeDraw()