Home
last modified time | relevance | path

Searched refs:SkScalerContext (Results 1 – 25 of 40) sorted by relevance

12

/third_party/skia/src/core/
DSkScalerContext.cpp43 SkScalerContextRec SkScalerContext::PreprocessRec(const SkTypeface& typeface, in PreprocessRec()
75 SkScalerContext::SkScalerContext(sk_sp<SkTypeface> typeface, const SkScalerContextEffects& effects, in SkScalerContext() function in SkScalerContext
84 , fPreBlend(fMaskFilter ? SkMaskGamma::PreBlend() : SkScalerContext::GetMaskPreBlend(fRec)) in SkScalerContext()
94 SkScalerContext::~SkScalerContext() {} in ~SkScalerContext()
138 SkMaskGamma::PreBlend SkScalerContext::GetMaskPreBlend(const SkScalerContextRec& rec) { in GetMaskPreBlend()
149 size_t SkScalerContext::GetGammaLUTSize(SkScalar contrast, SkScalar paintGamma, in GetGammaLUTSize()
162 bool SkScalerContext::GetGammaLUTData(SkScalar contrast, SkScalar paintGamma, SkScalar deviceGamma, in GetGammaLUTData()
180 SkGlyph SkScalerContext::makeGlyph(SkPackedGlyphID packedID) { in makeGlyph()
184 SkGlyph SkScalerContext::internalMakeGlyph(SkPackedGlyphID packedID, SkMask::Format format) { in internalMakeGlyph()
215 const bool a8FromLCD = fRec.fFlags & SkScalerContext::kGenA8FromLCD_Flag; in internalMakeGlyph()
[all …]
DSkScalerContext.h31 class SkScalerContext; variable
216 friend class SkScalerContext;
240 class SkScalerContext {
275 SkScalerContext(sk_sp<SkTypeface>, const SkScalerContextEffects&, const SkDescriptor*);
276 virtual ~SkScalerContext();
330 static std::unique_ptr<SkScalerContext> MakeEmpty(
440 unsigned hint = (fFlags & SkScalerContext::kHinting_Mask) >> in getHinting()
441 SkScalerContext::kHinting_Shift; in getHinting()
446 fFlags = (fFlags & ~SkScalerContext::kHinting_Mask) | in setHinting()
447 (static_cast<unsigned>(hinting) << SkScalerContext::kHinting_Shift); in setHinting()
DSkScalerCache.h22 class SkScalerContext; variable
55 SkScalerCache(std::unique_ptr<SkScalerContext> scaler,
109 SkScalerContext* getScalerContext() const { return fScalerContext.get(); } in getScalerContext()
140 const std::unique_ptr<SkScalerContext> fScalerContext;
DSkTypeface_remote.h23 class SkScalerContextProxy : public SkScalerContext {
40 using INHERITED = SkScalerContext;
97 std::unique_ptr<SkScalerContext> onCreateScalerContext( in onCreateScalerContext()
DSkTypeface.cpp47 std::unique_ptr<SkScalerContext> onCreateScalerContext( in onCreateScalerContext()
50 return SkScalerContext::MakeEmpty( in onCreateScalerContext()
374 std::unique_ptr<SkScalerContext> SkTypeface::createScalerContext( in createScalerContext()
376 std::unique_ptr<SkScalerContext> scalerContext = this->onCreateScalerContext(effects, desc); in createScalerContext()
550 SkScalerContext::MakeRecAndEffectsFromFont(font, &rec, &effects); in onComputeBounds()
554 SkScalerContext::AutoDescriptorGivenRecAndEffects(rec, noeffects, &ad); in onComputeBounds()
556 std::unique_ptr<SkScalerContext> ctx = this->createScalerContext(noeffects, ad.getDesc()); in onComputeBounds()
DSkGlyph.h21 class SkScalerContext; variable
262 bool setImage(SkArenaAlloc* alloc, SkScalerContext* scalerContext);
293 bool setPath(SkArenaAlloc* alloc, SkScalerContext* scalerContext);
342 friend class SkScalerContext; variable
DSkStrikeCache.h44 std::unique_ptr<SkScalerContext> scaler, in SkStrike()
65 SkScalerContext* getScalerContext() const { in getScalerContext()
DSkTypeface_remote.cpp19 : SkScalerContext{std::move(tf), effects, desc} in SkScalerContextProxy()
DSkGlyph.cpp78 bool SkGlyph::setImage(SkArenaAlloc* alloc, SkScalerContext* scalerContext) { in setImage()
156 bool SkGlyph::setPath(SkArenaAlloc* alloc, SkScalerContext* scalerContext) { in setPath()
DSkScalerCache.cpp17 const SkFontMetrics* metrics, SkScalerContext* context) { in use_or_generate_metrics()
28 std::unique_ptr<SkScalerContext> scaler, in SkScalerCache()
/third_party/skia/include/core/
DSkTypeface.h24 class SkScalerContext; variable
335 std::unique_ptr<SkScalerContext> createScalerContext(const SkScalerContextEffects&,
373 virtual std::unique_ptr<SkScalerContext> onCreateScalerContext(const SkScalerContextEffects&,
376 friend class SkScalerContext; // onFilterRec variable
/third_party/skia/tools/fonts/
DRandomScalerContext.cpp18 class RandomScalerContext : public SkScalerContext {
36 std::unique_ptr<SkScalerContext> fProxy;
44 : SkScalerContext(std::move(face), effects, desc) in RandomScalerContext()
144 std::unique_ptr<SkScalerContext> SkRandomTypeface::onCreateScalerContext( in onCreateScalerContext()
DTestTypeface.cpp148 class SkTestScalerContext : public SkScalerContext {
153 : SkScalerContext(std::move(face), effects, desc) { in SkTestScalerContext()
195 std::unique_ptr<SkScalerContext> TestTypeface::onCreateScalerContext( in onCreateScalerContext()
DTestEmptyTypeface.h27 std::unique_ptr<SkScalerContext> onCreateScalerContext( in onCreateScalerContext()
30 return SkScalerContext::MakeEmpty( in onCreateScalerContext()
DTestTypeface.h28 class SkScalerContext; variable
73 std::unique_ptr<SkScalerContext> onCreateScalerContext(const SkScalerContextEffects&,
DTestSVGTypeface.h36 class SkScalerContext; variable
85 std::unique_ptr<SkScalerContext> onCreateScalerContext(const SkScalerContextEffects&,
DRandomScalerContext.h27 std::unique_ptr<SkScalerContext> onCreateScalerContext(const SkScalerContextEffects&,
/third_party/skia/src/ports/
DSkFontHost_FreeType_common.h39 class SkScalerContext_FreeType_Base : public SkScalerContext {
64 using INHERITED = SkScalerContext;
116 std::unique_ptr<SkScalerContext> onCreateScalerContext(const SkScalerContextEffects&,
DSkScalerContext_mac_ct.h42 class SkScalerContext_Mac : public SkScalerContext {
112 using INHERITED = SkScalerContext;
DSkTypeface_win_dw.cpp393 std::unique_ptr<SkScalerContext> DWriteFontTypeface::onCreateScalerContext( in onCreateScalerContext()
401 if (rec->fFlags & SkScalerContext::kLCD_Vertical_Flag) { in onFilterRec()
403 rec->fFlags |= SkScalerContext::kGenA8FromLCD_Flag; in onFilterRec()
406 unsigned flagsWeDontSupport = SkScalerContext::kForceAutohinting_Flag | in onFilterRec()
407 SkScalerContext::kEmbolden_Flag | in onFilterRec()
408 SkScalerContext::kLCD_Vertical_Flag; in onFilterRec()
DSkTypeface_mac_ct.h41 class SkScalerContext; variable
106 std::unique_ptr<SkScalerContext> onCreateScalerContext(const SkScalerContextEffects&,
DSkFontHost_win.cpp277 std::unique_ptr<SkScalerContext> onCreateScalerContext(const SkScalerContextEffects&,
555 class SkScalerContext_GDI : public SkScalerContext {
625 if (rec.fFlags & SkScalerContext::kGenA8FromLCD_Flag) { in compute_quality()
636 : SkScalerContext(std::move(rawTypeface), effects, desc) in SkScalerContext_GDI()
1114 if (isAA && !(fRec.fFlags & SkScalerContext::kGenA8FromLCD_Flag)) { in generateImage()
2075 std::unique_ptr<SkScalerContext> LogFontTypeface::onCreateScalerContext( in onCreateScalerContext()
2092 return SkScalerContext::MakeEmpty( in onCreateScalerContext()
2097 if (rec->fFlags & SkScalerContext::kLCD_BGROrder_Flag || in onFilterRec()
2098 rec->fFlags & SkScalerContext::kLCD_Vertical_Flag) in onFilterRec()
2101 rec->fFlags |= SkScalerContext::kGenA8FromLCD_Flag; in onFilterRec()
[all …]
DSkTypeface_mac_ct.cpp920 std::unique_ptr<SkScalerContext> SkTypeface_Mac::onCreateScalerContext( in onCreateScalerContext()
928 if (rec->fFlags & SkScalerContext::kLCD_BGROrder_Flag || in onFilterRec()
929 rec->fFlags & SkScalerContext::kLCD_Vertical_Flag) in onFilterRec()
939 unsigned flagsWeDontSupport = SkScalerContext::kForceAutohinting_Flag | in onFilterRec()
940 SkScalerContext::kLCD_BGROrder_Flag | in onFilterRec()
941 SkScalerContext::kLCD_Vertical_Flag; in onFilterRec()
/third_party/skia/src/gpu/text/
DGrDistanceFieldAdjustTable.cpp59 size = SkScalerContext::GetGammaLUTSize(contrast, paintGamma, deviceGamma,
66 if (!SkScalerContext::GetGammaLUTData(contrast, paintGamma, deviceGamma, data.get())) {
/third_party/skia/src/utils/
DSkCustomTypeface.cpp54 std::unique_ptr<SkScalerContext> onCreateScalerContext(const SkScalerContextEffects&,
190 class SkUserScalerContext : public SkScalerContext {
195 : SkScalerContext(std::move(face), effects, desc) { in SkUserScalerContext()
236 std::unique_ptr<SkScalerContext> SkUserTypeface::onCreateScalerContext( in onCreateScalerContext()

12