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

Unified Diff: gm/androidfallback.cpp

Issue 25749003: update GM to use #ifdef instead of just #if (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 2 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/androidfallback.cpp
diff --git a/gm/androidfallback.cpp b/gm/androidfallback.cpp
index 3ef8f1ca5132ebf181a71c1b2ad6d3c4f9e48ade..a4f10369f14b061caa74d36826a1836b0ad1255f 100644
--- a/gm/androidfallback.cpp
+++ b/gm/androidfallback.cpp
@@ -30,7 +30,7 @@ protected:
paint.setTextEncoding(SkPaint::kUTF16_TextEncoding);
paint.setTextSize(24);
-#if SK_BUILD_FOR_ANDROID
+#ifdef SK_BUILD_FOR_ANDROID
SkPaintOptionsAndroid options = paint.getPaintOptionsAndroid();
options.setUseFontFallbacks(true);
paint.setPaintOptionsAndroid(options);
@@ -58,7 +58,7 @@ protected:
canvas->translate(0, SkIntToScalar(75));
canvas->drawPosTextH(unicodeStr, strByteLength, posX, 0, paint);
-#if SK_BUILD_FOR_ANDROID
+#ifdef SK_BUILD_FOR_ANDROID
options.setLanguage("ja");
paint.setPaintOptionsAndroid(options);
#endif
@@ -80,7 +80,7 @@ private:
//////////////////////////////////////////////////////////////////////////////
-#if SK_BUILD_FOR_ANDROID
+#ifdef SK_BUILD_FOR_ANDROID
DEF_GM( return SkNEW(AndroidFallbackGM); )
#endif
« 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