зеркало из https://github.com/mozilla/moz-skia.git
update GM to use #ifdef instead of just #if
Review URL: https://codereview.chromium.org/25749003 git-svn-id: http://skia.googlecode.com/svn/trunk@11590 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
Родитель
546f70c823
Коммит
f7f5b7c506
|
@ -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
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче