diff options
author | 2014-08-21 16:39:12 -0700 | |
---|---|---|
committer | 2014-08-21 16:39:12 -0700 | |
commit | c8460493adbaba5acef69b3127c452df99117b24 (patch) | |
tree | fd70a69a464f4766b99e190fff3443c2342f8769 | |
parent | 2084050a33ae139d0fe9bb680f7905f91139a39f (diff) |
1.5x -> 2x text size for y pad.
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
-rw-r--r-- | src/core/SkRecordDraw.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/SkRecordDraw.cpp b/src/core/SkRecordDraw.cpp index db4e87fbce..a14b031695 100644 --- a/src/core/SkRecordDraw.cpp +++ b/src/core/SkRecordDraw.cpp @@ -316,7 +316,7 @@ private: #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 |