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:
bungeman 2016-02-25 07:07:32 -08:00 committed by Commit bot
parent 50fe38e72a
commit fa5e5c7521

View File

@ -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: