Home
last modified time | relevance | path

Searched refs:SkStrikeSpec (Results 1 – 25 of 33) sorted by relevance

12

/external/skia/src/core/
DSkStrikeSpec.cpp27 SkStrikeSpec::SkStrikeSpec(const SkDescriptor& descriptor, sk_sp<SkTypeface> typeface) in SkStrikeSpec() function in SkStrikeSpec
31 SkStrikeSpec::SkStrikeSpec(const SkStrikeSpec&) = default;
32 SkStrikeSpec::SkStrikeSpec(SkStrikeSpec&&) = default;
33 SkStrikeSpec::~SkStrikeSpec() = default;
35 SkStrikeSpec SkStrikeSpec::MakeMask(const SkFont& font, const SkPaint& paint, in MakeMask()
40 return SkStrikeSpec(font, paint, surfaceProps, scalerContextFlags, deviceMatrix); in MakeMask()
43 SkStrikeSpec SkStrikeSpec::MakeTransformMask(const SkFont& font, in MakeTransformMask()
50 return SkStrikeSpec(sourceFont, paint, surfaceProps, scalerContextFlags, deviceMatrix); in MakeTransformMask()
53 std::tuple<SkStrikeSpec, SkScalar> SkStrikeSpec::MakePath( in MakePath()
69 return {SkStrikeSpec(pathFont, pathPaint, surfaceProps, scalerContextFlags, SkMatrix::I()), in MakePath()
[all …]
DSkStrikeSpec.h34 class SkStrikeSpec {
36 SkStrikeSpec(const SkDescriptor& descriptor, sk_sp<SkTypeface> typeface);
37 SkStrikeSpec(const SkStrikeSpec&);
38 SkStrikeSpec& operator=(const SkStrikeSpec&) = delete;
40 SkStrikeSpec(SkStrikeSpec&&);
41 SkStrikeSpec& operator=(SkStrikeSpec&&) = delete;
43 ~SkStrikeSpec();
46 static SkStrikeSpec MakeMask(
55 static SkStrikeSpec MakeTransformMask(
63 static std::tuple<SkStrikeSpec, SkScalar> MakePath(
[all …]
DSkStrikeCache.h44 const SkStrikeSpec& strikeSpec,
48 sk_sp<SkStrike> findOrCreateStrike(const SkStrikeSpec& strikeSpec) SK_EXCLUDES(fLock);
51 const SkStrikeSpec& strikeSpec) override SK_EXCLUDES(fLock);
75 const SkStrikeSpec& strikeSpec,
DSkGlyphRunPainter.cpp192 if (SkStrikeSpec::ShouldDrawAsPath(paint, runFont, positionMatrix)) { in drawForBitmapDevice()
194 SkStrikeSpec::MakePath(runFont, paint, props, fScalerContextFlags); in drawForBitmapDevice()
266 SkStrikeSpec strikeSpec = SkStrikeSpec::MakeMask( in drawForBitmapDevice()
283 SkStrikeSpec scaleStrikeSpec = SkStrikeSpec::MakeMask( in drawForBitmapDevice()
324 SkStrikeSpec strikeSpec = SkStrikeSpec::MakeMask( in drawForBitmapDevice()
DSkFont.cpp175 auto [strikeSpec, strikeToSourceScale] = SkStrikeSpec::MakeCanonicalized(*this, paint); in measureText()
213 auto [strikeSpec, strikeToSourceScale] = SkStrikeSpec::MakeCanonicalized(*this, paint); in getWidthsBounds()
234 auto [strikeSpec, strikeToSourceScale] = SkStrikeSpec::MakeCanonicalized(*this); in getPos()
248 auto [strikeSpec, strikeToSourceScale] = SkStrikeSpec::MakeCanonicalized(*this); in getXPos()
266 SkStrikeSpec strikeSpec = SkStrikeSpec::MakeWithNoDevice(font); in getPaths()
293 auto [strikeSpec, strikeToSourceScale] = SkStrikeSpec::MakeCanonicalized(*this, nullptr); in getMetrics()
DSkStrike.h44 const SkStrikeSpec& strikeSpec,
112 const SkStrikeSpec& strikeSpec() const { in strikeSpec()
155 const SkStrikeSpec fStrikeSpec;
DSkStrikeCache.cpp38 auto SkStrikeCache::findOrCreateStrike(const SkStrikeSpec& strikeSpec) -> sk_sp<SkStrike> { in findOrCreateStrike()
48 sk_sp<StrikeForGPU> SkStrikeCache::findOrCreateScopedStrike(const SkStrikeSpec& strikeSpec) { in findOrCreateScopedStrike()
125 const SkStrikeSpec& strikeSpec, in createStrike()
133 const SkStrikeSpec& strikeSpec, in internalCreateStrike()
DSkChromeRemoteGlyphCache.cpp167 RemoteStrike(const SkStrikeSpec& strikeSpec,
198 void setStrikeSpec(const SkStrikeSpec& strikeSpec);
227 const SkStrikeSpec* fStrikeSpec;
246 const SkStrikeSpec& strikeSpec, in RemoteStrike()
333 void RemoteStrike::setStrikeSpec(const SkStrikeSpec& strikeSpec) { in setStrikeSpec()
444 sk_sp<sktext::StrikeForGPU> findOrCreateScopedStrike(const SkStrikeSpec& strikeSpec) override;
455 sk_sp<RemoteStrike> getOrCreateCache(const SkStrikeSpec& strikeSpec);
558 const SkStrikeSpec& strikeSpec) { in findOrCreateScopedStrike()
579 sk_sp<RemoteStrike> SkStrikeServerImpl::getOrCreateCache(const SkStrikeSpec& strikeSpec) { in getOrCreateCache()
948 SkStrikeSpec strikeSpec{*clientDesc, *tfPtr}; in readStrikeData()
DBUILD.bazel303 "SkStrikeSpec.cpp",
304 "SkStrikeSpec.h",
/external/skia/src/text/
DStrikeForGPU.cpp26 SkStrikePromise::SkStrikePromise(const SkStrikeSpec& spec) in SkStrikePromise()
27 : fStrikeOrSpec{std::make_unique<SkStrikeSpec>(spec)} {} in SkStrikePromise()
30 if (std::holds_alternative<std::unique_ptr<SkStrikeSpec>>(fStrikeOrSpec)) { in strike()
32 std::unique_ptr<SkStrikeSpec> spec = in strike()
33 std::exchange(std::get<std::unique_ptr<SkStrikeSpec>>(fStrikeOrSpec), nullptr); in strike()
45 if (std::holds_alternative<std::unique_ptr<SkStrikeSpec>>(fStrikeOrSpec)) { in descriptor()
46 return std::get<std::unique_ptr<SkStrikeSpec>>(fStrikeOrSpec)->descriptor(); in descriptor()
DStrikeForGPU.h28 class SkStrikeSpec; variable
52 explicit SkStrikePromise(const SkStrikeSpec& spec);
69 std::variant<sk_sp<SkStrike>, std::unique_ptr<SkStrikeSpec>> fStrikeOrSpec;
129 virtual sk_sp<StrikeForGPU> findOrCreateScopedStrike(const SkStrikeSpec& strikeSpec) = 0;
DGlyphRun.cpp128 auto [strikeSpec, strikeToSourceScale] = SkStrikeSpec::MakeCanonicalized(font, &paint); in glyphrun_source_bounds()
193 SkStrikeSpec strikeSpec = SkStrikeSpec::MakeWithNoDevice(font); in draw_text_positions()
/external/skia/src/text/gpu/
DStrikeCache.h26 TextStrike(const SkStrikeSpec& strikeSpec);
29 const SkStrikeSpec& strikeSpec() const { return fStrikeSpec; } in strikeSpec()
33 const SkStrikeSpec fStrikeSpec;
55 sk_sp<TextStrike> findOrCreateStrike(const SkStrikeSpec& strikeSpec);
60 sk_sp<TextStrike> generateStrike(const SkStrikeSpec& strikeSpec);
DStrikeCache.cpp23 sk_sp<TextStrike> StrikeCache::findOrCreateStrike(const SkStrikeSpec& strikeSpec) { in findOrCreateStrike()
30 sk_sp<TextStrike> StrikeCache::generateStrike(const SkStrikeSpec& strikeSpec) { in generateStrike()
44 TextStrike::TextStrike(const SkStrikeSpec& strikeSpec) : fStrikeSpec{strikeSpec} {} in TextStrike()
DSubRunContainer.cpp2526 SkStrikeSpec::MakeSDFT( in MakeInAlloc()
2571 SkStrikeSpec strikeSpec = SkStrikeSpec::MakeMask( in MakeInAlloc()
2604 SkStrikeSpec::MakePath(runFont, runPaint, deviceProps, scalerContextFlags); in MakeInAlloc()
2627 SkStrikeSpec::MakePath(runFont, runPaint, deviceProps, scalerContextFlags); in MakeInAlloc()
2684 const SkStrikeSpec strikeSpec = SkStrikeSpec::MakeTransformMask( in MakeInAlloc()
2719 SkStrikeSpec strikeSpec = SkStrikeSpec::MakeTransformMask( in MakeInAlloc()
/external/skia/tests/
DSkStrikeCacheTest.cpp34 SkStrikeSpec strikeSpec = SkStrikeSpec::MakeMask( in DEF_TEST()
DSkStrikeTest.cpp101 SkStrikeSpec strikeSpec = SkStrikeSpec::MakeMask( in DEF_TEST()
DGrGlyphVectorTest.cpp46 auto [strikeSpec, _] = SkStrikeSpec::MakeCanonicalized(font); in DEF_TEST()
79 auto [strikeSpec, _] = SkStrikeSpec::MakeCanonicalized(SkFont()); in DEF_TEST()
DStrikeForGPUTest.cpp28 auto [strikeSpec, _] = SkStrikeSpec::MakeCanonicalized(SkFont()); in DEF_TEST()
/external/skia/bench/
DPathTextBench.cpp50 SkStrikeSpec strikeSpec = SkStrikeSpec::MakeWithNoDevice(defaultFont); in onDelayedSetup()
/external/skia/src/pdf/
DSkPDFMakeCIDGlyphWidthsArray.cpp105 SkStrikeSpec strikeSpec = SkStrikeSpec::MakePDFVector(typeface, &emSize); in SkPDFMakeCIDGlyphWidthsArray()
DSkPDFFont.cpp535 SkStrikeSpec make_small_strike(const SkTypeface& typeface) { in make_small_strike()
539 return SkStrikeSpec::MakeMask(font, in make_small_strike()
558 SkStrikeSpec strikeSpec = SkStrikeSpec::MakePDFVector(*typeface, &unitsPerEm); in emit_subset_type3()
566 SkStrikeSpec strikeSpecSmall = kBitmapFontSize > 0 ? make_small_strike(*typeface) in emit_subset_type3()
DSkPDFType1Font.cpp315 SkStrikeSpec strikeSpec = SkStrikeSpec::MakePDFVector(*typeface, &emSize); in SkPDFEmitType1Font()
/external/skia/include/core/
DSkFont.h536 friend class SkStrikeSpec; variable
/external/skia/tools/viewer/
DPathTextSlide.cpp41 SkStrikeSpec strikeSpec = SkStrikeSpec::MakeWithNoDevice(defaultFont); in load()

12