Home
last modified time | relevance | path

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

12

/external/skia/src/core/
DSkScalerContext.h154 class SkScalerContext {
189 SkScalerContext(SkTypeface*, const SkDescriptor*);
190 virtual ~SkScalerContext();
324 SkScalerContext* getContextFromChar(SkUnichar uni, uint16_t* glyphID);
360 unsigned hint = (fFlags & SkScalerContext::kHinting_Mask) >> in getHinting()
361 SkScalerContext::kHinting_Shift; in getHinting()
366 fFlags = (fFlags & ~SkScalerContext::kHinting_Mask) | in setHinting()
367 (hinting << SkScalerContext::kHinting_Shift); in setHinting()
DSkScalerContext.cpp79 SkScalerContext::SkScalerContext(SkTypeface* typeface, const SkDescriptor* desc) in SkScalerContext() function in SkScalerContext
92 , fPreBlend(fMaskFilter ? SkMaskGamma::PreBlend() : SkScalerContext::GetMaskPreBlend(fRec)) in SkScalerContext()
93 , fPreBlendForFilter(fMaskFilter ? SkScalerContext::GetMaskPreBlend(fRec) in SkScalerContext()
112 SkScalerContext::~SkScalerContext() { in ~SkScalerContext()
118 void SkScalerContext::getAdvance(SkGlyph* glyph) { in getAdvance()
127 void SkScalerContext::getMetrics(SkGlyph* glyph) { in getMetrics()
134 if ((fRec.fFlags & SkScalerContext::kDevKernText_Flag) == 0) { in getMetrics()
470 void SkScalerContext::getImage(const SkGlyph& origGlyph) { in getImage()
588 void SkScalerContext::getPath(const SkGlyph& glyph, SkPath* path) { in getPath()
592 void SkScalerContext::getFontMetrics(SkPaint::FontMetrics* fm) { in getFontMetrics()
[all …]
DSkPaint.cpp1304 static bool too_big_for_lcd(const SkScalerContext::Rec& rec, bool checkPost2x2) { in too_big_for_lcd()
1325 void SkScalerContext::MakeRec(const SkPaint& paint, in MakeRec()
1370 flags |= SkScalerContext::kEmbolden_Flag; in MakeRec()
1388 flags |= SkScalerContext::kDevKernText_Flag; in MakeRec()
1397 flags |= SkScalerContext::kFrameAndFill_Flag; in MakeRec()
1410 flags |= SkScalerContext::kGenA8FromLCD_Flag; in MakeRec()
1419 flags |= SkScalerContext::kGenA8FromLCD_Flag; in MakeRec()
1425 flags |= SkScalerContext::kLCD_BGROrder_Flag; in MakeRec()
1428 flags |= SkScalerContext::kLCD_Vertical_Flag; in MakeRec()
1431 flags |= SkScalerContext::kLCD_Vertical_Flag; in MakeRec()
[all …]
DSkGlyphCache.h126 SkScalerContext* getScalerContext() const { return fScalerContext; } in getScalerContext()
217 SkGlyphCache(SkTypeface*, const SkDescriptor*, SkScalerContext*);
259 SkScalerContext* const fScalerContext;
DSkTypeface.cpp43 SkScalerContext* onCreateScalerContext(const SkDescriptor*) const override { in onCreateScalerContext()
343 SkScalerContext::Rec rec; in onComputeBounds()
344 SkScalerContext::MakeRec(paint, nullptr, nullptr, &rec); in onComputeBounds()
351 SkAutoTDelete<SkScalerContext> ctx(this->createScalerContext(desc, true)); in onComputeBounds()
DSkDescriptor.h166 + sizeof(SkDescriptor::Entry) + sizeof(SkScalerContext::Rec) // for rec
/external/skia/src/fonts/
DSkGScalerContext.cpp13 class SkGScalerContext : public SkScalerContext {
29 SkScalerContext* fProxy;
38 : SkScalerContext(face, desc) in SkGScalerContext()
42 size_t descSize = SkDescriptor::ComputeOverhead(1) + sizeof(SkScalerContext::Rec); in SkGScalerContext()
48 sizeof(SkScalerContext::Rec), &fRec); in SkGScalerContext()
50 SkScalerContext::Rec* rec = (SkScalerContext::Rec*)entry; in SkGScalerContext()
167 SkScalerContext* SkGTypeface::onCreateScalerContext( in onCreateScalerContext()
DSkRandomScalerContext.cpp14 class SkRandomScalerContext : public SkScalerContext {
30 SkScalerContext* fProxy;
40 : SkScalerContext(face, desc) in SkRandomScalerContext()
200 SkScalerContext* SkRandomTypeface::onCreateScalerContext( in onCreateScalerContext()
DSkTestScalerContext.cpp182 class SkTestScalerContext : public SkScalerContext {
185 : SkScalerContext(face, desc) in SkTestScalerContext()
284 SkScalerContext* SkTestTypeface::onCreateScalerContext(const SkDescriptor* desc) const { in onCreateScalerContext()
DSkGScalerContext.h23 SkScalerContext* onCreateScalerContext(const SkDescriptor*) const override;
DSkRandomScalerContext.h28 SkScalerContext* onCreateScalerContext(const SkDescriptor*) const override;
DSkTestScalerContext.h69 SkScalerContext* onCreateScalerContext(const SkDescriptor* desc) const override;
/external/skia/src/ports/
DSkFontHost_FreeType_common.h23 class SkScalerContext_FreeType_Base : public SkScalerContext {
37 typedef SkScalerContext INHERITED;
78 virtual SkScalerContext* onCreateScalerContext(
DSkTypeface_win_dw.cpp247 SkScalerContext* DWriteFontTypeface::onCreateScalerContext(const SkDescriptor* desc) const { in onCreateScalerContext()
251 void DWriteFontTypeface::onFilterRec(SkScalerContext::Rec* rec) const { in onFilterRec()
252 if (rec->fFlags & SkScalerContext::kLCD_Vertical_Flag) { in onFilterRec()
256 unsigned flagsWeDontSupport = SkScalerContext::kVertical_Flag | in onFilterRec()
257 SkScalerContext::kDevKernText_Flag | in onFilterRec()
258 SkScalerContext::kForceAutohinting_Flag | in onFilterRec()
259 SkScalerContext::kEmbolden_Flag | in onFilterRec()
260 SkScalerContext::kLCD_Vertical_Flag; in onFilterRec()
DSkFontHost_win.cpp60 static bool isLCD(const SkScalerContext::Rec& rec) { in isLCD()
69 static bool isAxisAligned(const SkScalerContext::Rec& rec) { in isAxisAligned()
75 static bool needToRenderWithSkia(const SkScalerContext::Rec& rec) { in needToRenderWithSkia()
259 SkScalerContext* onCreateScalerContext(const SkDescriptor*) const override;
533 class SkScalerContext_GDI : public SkScalerContext {
586 static BYTE compute_quality(const SkScalerContext::Rec& rec) { in compute_quality()
593 if (rec.fFlags & SkScalerContext::kGenA8FromLCD_Flag) { in compute_quality()
603 : SkScalerContext(rawTypeface, desc) in SkScalerContext_GDI()
1250 if (isAA && !(fRec.fFlags & SkScalerContext::kGenA8FromLCD_Flag)) { in generateImage()
2282 SkScalerContext* LogFontTypeface::onCreateScalerContext(const SkDescriptor* desc) const { in onCreateScalerContext()
[all …]
DSkFontHost_FreeType.cpp63 static bool isLCD(const SkScalerContext::Rec& rec) { in isLCD()
659 static bool isAxisAligned(const SkScalerContext::Rec& rec) { in isAxisAligned()
665 SkScalerContext* SkTypeface_FreeType::onCreateScalerContext( in onCreateScalerContext()
702 if ((rec->fFlags & SkScalerContext::kSubpixelPositioning_Flag)) { in onFilterRec()
822 fLCDIsVert = SkToBool(fRec.fFlags & SkScalerContext::kLCD_Vertical_Flag); in SkScalerContext_FreeType()
825 bool linearMetrics = SkToBool(fRec.fFlags & SkScalerContext::kSubpixelPositioning_Flag); in SkScalerContext_FreeType()
846 if (fRec.fFlags & SkScalerContext::kForceAutohinting_Flag) { in SkScalerContext_FreeType()
855 if (fRec.fFlags & SkScalerContext::kForceAutohinting_Flag) { in SkScalerContext_FreeType()
874 if ((fRec.fFlags & SkScalerContext::kEmbeddedBitmapText_Flag) == 0) { in SkScalerContext_FreeType()
884 if (fRec.fFlags & SkScalerContext::kVertical_Flag) { in SkScalerContext_FreeType()
[all …]
DSkScalerContext_win_dw.cpp46 static bool isLCD(const SkScalerContext::Rec& rec) { in isLCD()
200 static bool is_axis_aligned(const SkScalerContext::Rec& rec) { in is_axis_aligned()
208 : SkScalerContext(typeface, desc) in SkScalerContext_DW()
257 bool bitmapRequested = SkToBool(fRec.fFlags & SkScalerContext::kEmbeddedBitmapText_Flag); in SkScalerContext_DW()
740 if (fRec.fFlags & SkScalerContext::kLCD_BGROrder_Flag) { in generateImage()
746 if (fRec.fFlags & SkScalerContext::kLCD_BGROrder_Flag) { in generateImage()
DSkScalerContext_win_dw.h21 class SkScalerContext_DW : public SkScalerContext {
DSkFontHost_FreeType_common.cpp338 const bool doBGR = SkToBool(fRec.fFlags & SkScalerContext::kLCD_BGROrder_Flag); in generateGlyphImage()
339 const bool doVert = SkToBool(fRec.fFlags & SkScalerContext::kLCD_Vertical_Flag); in generateGlyphImage()
348 if (fRec.fFlags & SkScalerContext::kSubpixelPositioning_Flag) { in generateGlyphImage()
405 if (fRec.fFlags & SkScalerContext::kEmbolden_Flag && in generateGlyphImage()
DSkTypeface_win_dw.h99 SkScalerContext* onCreateScalerContext(const SkDescriptor*) const override;
DSkFontHost_mac.cpp470 SkScalerContext* onCreateScalerContext(const SkDescriptor*) const override;
638 class SkScalerContext_Mac : public SkScalerContext {
724 typedef SkScalerContext INHERITED;
1951 SkScalerContext* SkTypeface_Mac::onCreateScalerContext(const SkDescriptor* desc) const { in onCreateScalerContext()
1956 if (rec->fFlags & SkScalerContext::kLCD_BGROrder_Flag || in onFilterRec()
1957 rec->fFlags & SkScalerContext::kLCD_Vertical_Flag) in onFilterRec()
1967 unsigned flagsWeDontSupport = SkScalerContext::kDevKernText_Flag | in onFilterRec()
1968 SkScalerContext::kForceAutohinting_Flag | in onFilterRec()
1969 SkScalerContext::kLCD_BGROrder_Flag | in onFilterRec()
1970 SkScalerContext::kLCD_Vertical_Flag; in onFilterRec()
/external/skia/include/core/
DSkTypeface.h22 class SkScalerContext; variable
298 SkScalerContext* createScalerContext(const SkDescriptor*,
336 friend class SkScalerContext; variable
339 virtual SkScalerContext* onCreateScalerContext(const SkDescriptor*) const = 0;
DSkFontHost.h16 class SkScalerContext; variable
/external/skia/src/gpu/text/
DGrDistanceFieldAdjustTable.cpp61 size = SkScalerContext::GetGammaLUTSize(contrast, paintGamma, deviceGamma,
68 SkScalerContext::GetGammaLUTData(contrast, paintGamma, deviceGamma, data.get());
/external/skia/src/gpu/
DGrPathRendering.cpp47 const SkAutoTDelete<SkScalerContext> fScalerContext;

12