This will expand the cheat to just big enough to pass an assertion coming
from our GDI bot. Currently failing:
-6.000000 -1.500000 6.000000 1.500000 vs. -1.000000 -2.000000 3.000000 1.000000
Will become (-8 -2 8 2) vs. (-1 -2 3 1).
BUG=skia:
R=mtklein@google.com
Author: mtklein@chromium.org
Review URL: https://codereview.chromium.org/
496153002
#ifdef SK_DEBUG
SkRect correct = *rect;
#endif
- const SkScalar yPad = 1.5f * paint.getTextSize(), // In practice, this seems to be enough.
+ const SkScalar yPad = 2.0f * paint.getTextSize(), // In practice, this seems to be enough.
xPad = 4.0f * yPad; // Hack for very wide Github logo font.
rect->outset(xPad, yPad);
#ifdef SK_DEBUG