Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(279)

Unified Diff: src/core/SkRecordDraw.cpp

Issue 496153002: 1.5x -> 2x text size for y pad. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkRecordDraw.cpp
diff --git a/src/core/SkRecordDraw.cpp b/src/core/SkRecordDraw.cpp
index db4e87fbcee70cbeecb56d6d86e207aeb29b428c..a14b0316955dd0b1c93448c1bcd2410c5f74bae8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698