Reduce sizes in dftext GM on Android to match desktop better.
Review URL: https://codereview.chromium.org/630103003
This commit is contained in:
parent
345379dd3c
commit
ed14f1d9db
@ -41,7 +41,11 @@ protected:
|
||||
}
|
||||
|
||||
virtual void onDraw(SkCanvas* inputCanvas) {
|
||||
#if SK_BUILD_FOR_ANDROID
|
||||
SkScalar textSizes[] = { 9.0f, 9.0f*2.0f, 9.0f*5.0f, 9.0f*2.0f*5.0f };
|
||||
#else
|
||||
SkScalar textSizes[] = { 11.0f, 11.0f*2.0f, 11.0f*5.0f, 11.0f*2.0f*5.0f };
|
||||
#endif
|
||||
SkScalar scales[] = { 2.0f*5.0f, 5.0f, 2.0f, 1.0f };
|
||||
|
||||
// set up offscreen rendering with distance field text
|
||||
@ -150,7 +154,11 @@ protected:
|
||||
|
||||
x = SkIntToScalar(680);
|
||||
y = SkIntToScalar(270);
|
||||
#if SK_BUILD_FOR_ANDROID
|
||||
paint.setTextSize(SkIntToScalar(19));
|
||||
#else
|
||||
paint.setTextSize(SkIntToScalar(22));
|
||||
#endif
|
||||
for (size_t i = 0; i < SK_ARRAY_COUNT(fg); ++i) {
|
||||
paint.setColor(fg[i]);
|
||||
|
||||
@ -164,7 +172,11 @@ protected:
|
||||
|
||||
x = SkIntToScalar(830);
|
||||
y = SkIntToScalar(270);
|
||||
#if SK_BUILD_FOR_ANDROID
|
||||
paint.setTextSize(SkIntToScalar(19));
|
||||
#else
|
||||
paint.setTextSize(SkIntToScalar(22));
|
||||
#endif
|
||||
for (size_t i = 0; i < SK_ARRAY_COUNT(fg); ++i) {
|
||||
paint.setColor(fg[i]);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user