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

Unified Diff: gm/dftext.cpp

Issue 1245993003: fix typo (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: make dftext the same on Linux and Android Created 5 years, 5 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: gm/dftext.cpp
diff --git a/gm/dftext.cpp b/gm/dftext.cpp
index 1a46baffb35f1831baef78e21e55926f69401da3..5ccdf21749df1b1e27de436b0e8a53e4448405eb 100755
--- a/gm/dftext.cpp
+++ b/gm/dftext.cpp
@@ -42,11 +42,7 @@ protected:
}
virtual void onDraw(SkCanvas* inputCanvas) override {
-#ifdef 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
@@ -155,11 +151,7 @@ protected:
x = SkIntToScalar(680);
y = SkIntToScalar(270);
-#ifdef 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]);
@@ -173,11 +165,7 @@ protected:
x = SkIntToScalar(830);
y = SkIntToScalar(270);
-#ifdef 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]);
« 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