Use kSubpixelRounding in one missed location.
The kSubpixelRounding macro was created to clarify a block of code, but one simplification was missed. Review URL: https://codereview.chromium.org/1733843002
This commit is contained in:
parent
50fe38e72a
commit
fa5e5c7521
@ -367,7 +367,7 @@ private:
|
||||
static SkPoint SubpixelPositionRounding(SkAxisAlignment axisAlignment) {
|
||||
switch (axisAlignment) {
|
||||
case kX_SkAxisAlignment:
|
||||
return {SkFixedToScalar(SkGlyph::kSubpixelRound), SK_ScalarHalf};
|
||||
return {kSubpixelRounding, SK_ScalarHalf};
|
||||
case kY_SkAxisAlignment:
|
||||
return {SK_ScalarHalf, kSubpixelRounding};
|
||||
case kNone_SkAxisAlignment:
|
||||
|
Loading…
Reference in New Issue
Block a user