Remove SK_IGNORE_SUBPIXEL_AXIS_ALIGN_FIX.
This define was added with "Always round text position correctly."
9447103029
. The affected clients
have been rebaselined and this is no longer defined anywhere.
Review URL: https://codereview.chromium.org/722333002
This commit is contained in:
parent
a918cd9fb7
commit
bc97c9378b
@ -1752,14 +1752,10 @@ void SkDraw::drawPosText(const char text[], size_t byteLength,
|
||||
SkFixed fyMask = ~0;
|
||||
if (kX_SkAxisAlignment == baseline) {
|
||||
fyMask = 0;
|
||||
#ifndef SK_IGNORE_SUBPIXEL_AXIS_ALIGN_FIX
|
||||
d1g.fHalfSampleY = SK_FixedHalf;
|
||||
#endif
|
||||
} else if (kY_SkAxisAlignment == baseline) {
|
||||
fxMask = 0;
|
||||
#ifndef SK_IGNORE_SUBPIXEL_AXIS_ALIGN_FIX
|
||||
d1g.fHalfSampleX = SK_FixedHalf;
|
||||
#endif
|
||||
}
|
||||
|
||||
if (SkPaint::kLeft_Align == paint.getTextAlign()) {
|
||||
|
@ -239,14 +239,10 @@ void GrBitmapTextContext::onDrawPosText(const GrPaint& paint, const SkPaint& skP
|
||||
SkFixed fyMask = ~0;
|
||||
if (kX_SkAxisAlignment == baseline) {
|
||||
fyMask = 0;
|
||||
#ifndef SK_IGNORE_SUBPIXEL_AXIS_ALIGN_FIX
|
||||
halfSampleY = SK_FixedHalf;
|
||||
#endif
|
||||
} else if (kY_SkAxisAlignment == baseline) {
|
||||
fxMask = 0;
|
||||
#ifndef SK_IGNORE_SUBPIXEL_AXIS_ALIGN_FIX
|
||||
halfSampleX = SK_FixedHalf;
|
||||
#endif
|
||||
}
|
||||
|
||||
if (SkPaint::kLeft_Align == fSkPaint.getTextAlign()) {
|
||||
|
Loading…
Reference in New Issue
Block a user