/third_party/skia/src/gpu/text/ |
D | GrStrikeCache.cpp | 21 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
|
D | GrStrikeCache.h | 25 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);
|
/third_party/flutter/skia/src/core/ |
D | SkGlyphRunPainter.cpp | 177 SkStrikeSpec strikeSpec = SkStrikeSpec::MakePath( in drawForBitmapDevice() local 180 auto strike = strikeSpec.findOrCreateExclusiveStrike(); in drawForBitmapDevice() 227 strikeSpec.strikeToSourceRatio(), pathPaint); in drawForBitmapDevice() 229 SkStrikeSpec strikeSpec = SkStrikeSpec::MakeMask( in drawForBitmapDevice() local 232 auto strike = strikeSpec.findOrCreateExclusiveStrike(); in drawForBitmapDevice() 326 SkStrikeSpec strikeSpec = SkStrikeSpec::MakeMask( in processARGBFallback() local 329 SkScopedStrike strike = strikeSpec.findOrCreateScopedStrike(fStrikeCache); in processARGBFallback() 345 process->processDeviceFallback(glyphPosSpan, strikeSpec); in processARGBFallback() 352 SkStrikeSpec strikeSpec = SkStrikeSpec::MakeSourceFallback( in processARGBFallback() local 355 SkScopedStrike strike = strikeSpec.findOrCreateScopedStrike(fStrikeCache); in processARGBFallback() [all …]
|
D | SkFont.cpp | 225 SkStrikeSpec strikeSpec = SkStrikeSpec::MakeCanonicalized(*this, paint); in measureText() local 226 SkBulkGlyphMetrics metrics{strikeSpec}; in measureText() 245 const SkScalar scale = strikeSpec.strikeToSourceRatio(); in measureText() 264 SkStrikeSpec strikeSpec = SkStrikeSpec::MakeCanonicalized(*this, paint); in getWidthsBounds() local 265 SkBulkGlyphMetrics metrics{strikeSpec}; in getWidthsBounds() 268 SkScalar scale = strikeSpec.strikeToSourceRatio(); in getWidthsBounds() 287 SkStrikeSpec strikeSpec = SkStrikeSpec::MakeCanonicalized(*this); in getPos() local 288 SkBulkGlyphMetrics metrics{strikeSpec}; in getPos() 294 sum += glyph->advanceVector() * strikeSpec.strikeToSourceRatio(); in getPos() 301 SkStrikeSpec strikeSpec = SkStrikeSpec::MakeCanonicalized(*this); in getXPos() local [all …]
|
D | SkGlyphRunPainter.h | 162 const SkStrikeSpec& strikeSpec) = 0; 165 const SkStrikeSpec& strikeSpec) = 0; 170 const SkStrikeSpec& strikeSpec, 177 const SkStrikeSpec& strikeSpec, 181 const SkStrikeSpec& strikeSpec) = 0;
|
/third_party/skia/src/core/ |
D | SkGlyphRunPainter.cpp | 103 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 …]
|
D | SkStrikeCache.cpp | 36 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()
|
D | SkFont.cpp | 172 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 …]
|
D | SkStrikeCache.h | 43 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,
|
D | SkRemoteGlyphCache.cpp | 239 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 …]
|
D | SkGlyphRun.cpp | 49 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()
|
D | SkStrikeForGPU.h | 72 virtual SkScopedStrikeForGPU findOrCreateScopedStrike(const SkStrikeSpec& strikeSpec) = 0;
|
D | SkStrikeSpec.cpp | 190 SkStrikeSpec strikeSpec(dfFont, dfPaint, surfaceProps, flags, SkMatrix::I()); in MakeSDFT() local 192 return std::make_tuple(std::move(strikeSpec), strikeToSourceScale, minScale, maxScale); in MakeSDFT()
|
/third_party/skia/tests/ |
D | SkStrikeCacheTest.cpp | 25 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()
|
D | SkScalerCacheTest.cpp | 52 SkStrikeSpec strikeSpec = SkStrikeSpec::MakeMask( in DEF_TEST() local 59 SkScalerCache scalerCache{strikeSpec.createScalerContext()}; in DEF_TEST()
|
/third_party/flutter/skia/src/gpu/text/ |
D | GrTextBlob.h | 278 SubRun(Run* run, const SkStrikeSpec& strikeSpec, GrColor color) in SubRun() argument 281 , fStrikeSpec{strikeSpec} {} 351 const SkStrikeSpec& strikeSpec() const { return fStrikeSpec; } in strikeSpec() function 448 void setupFont(const SkStrikeSpec& strikeSpec); 521 const SkStrikeSpec& strikeSpec) override; 524 const SkStrikeSpec& strikeSpec) override; 529 const SkStrikeSpec& strikeSpec, 536 const SkStrikeSpec& strikeSpec, 540 const SkStrikeSpec& strikeSpec) override;
|
D | GrTextBlobVertexRegenerator.cpp | 182 const SkStrikeSpec& strikeSpec = fSubRun->strikeSpec(); in doRegen() local 184 if (!*fLazyStrike || (*fLazyStrike)->getDescriptor() != strikeSpec.descriptor()) { in doRegen() 186 strikeSpec.findOrCreateExclusiveStrike(SkStrikeCache::GlobalStrikeCache()); in doRegen() 190 strike = strikeSpec.findOrCreateGrStrike(fGlyphCache); in doRegen()
|
D | GrTextBlob.cpp | 62 void GrTextBlob::Run::setupFont(const SkStrikeSpec& strikeSpec) { in setupFont() argument 65 *fFallbackStrikeSpec = strikeSpec; in setupFont() 67 fStrikeSpec = strikeSpec; in setupFont()
|
/third_party/flutter/skia/bench/ |
D | SkGlyphCacheBench.cpp | 24 auto strikeSpec = SkStrikeSpec::MakeMask( in do_font_stuff() local 33 SkBulkGlyphMetricsAndImages images{strikeSpec}; in do_font_stuff()
|
D | PathTextBench.cpp | 50 SkStrikeSpec strikeSpec = SkStrikeSpec::MakeWithNoDevice(defaultFont); in onDelayedSetup() local 51 auto cache = strikeSpec.findOrCreateExclusiveStrike(); in onDelayedSetup()
|
/third_party/skia/bench/ |
D | PathTextBench.cpp | 50 SkStrikeSpec strikeSpec = SkStrikeSpec::MakeWithNoDevice(defaultFont); in onDelayedSetup() local 51 auto strike = strikeSpec.findOrCreateStrike(); in onDelayedSetup()
|
D | SkGlyphCacheBench.cpp | 26 auto strikeSpec = SkStrikeSpec::MakeMask( in do_font_stuff() local 35 SkBulkGlyphMetricsAndImages images{strikeSpec}; in do_font_stuff()
|
/third_party/skia/src/pdf/ |
D | SkPDFMakeCIDGlyphWidthsArray.cpp | 105 SkStrikeSpec strikeSpec = SkStrikeSpec::MakePDFVector(typeface, &emSize); in SkPDFMakeCIDGlyphWidthsArray() local 106 SkBulkGlyphMetricsAndPaths paths{strikeSpec}; in SkPDFMakeCIDGlyphWidthsArray()
|
/third_party/flutter/skia/src/pdf/ |
D | SkPDFMakeCIDGlyphWidthsArray.cpp | 164 SkStrikeSpec strikeSpec = SkStrikeSpec::MakePDFVector(typeface, &emSize); in SkPDFMakeCIDGlyphWidthsArray() local 165 SkBulkGlyphMetricsAndPaths paths{strikeSpec}; in SkPDFMakeCIDGlyphWidthsArray()
|
D | SkPDFType1Font.cpp | 311 SkStrikeSpec strikeSpec = SkStrikeSpec::MakePDFVector(*typeface, &emSize); in SkPDFEmitType1Font() local 312 SkBulkGlyphMetrics metrics{strikeSpec}; in SkPDFEmitType1Font()
|