OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2012 The Android Open Source Project | 3 * Copyright 2012 The Android Open Source Project |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 | 9 |
10 #ifndef SkPaintOptionsAndroid_DEFINED | 10 #ifndef SkPaintOptionsAndroid_DEFINED |
11 #define SkPaintOptionsAndroid_DEFINED | 11 #define SkPaintOptionsAndroid_DEFINED |
12 | 12 |
13 #include "SkTypes.h" | 13 #include "SkTypes.h" |
14 #include "SkString.h" | 14 #include "SkString.h" |
15 | 15 |
16 #ifdef SK_BUILD_FOR_ANDROID | |
17 | |
18 class SkFlattenableReadBuffer; | 16 class SkFlattenableReadBuffer; |
19 class SkFlattenableWriteBuffer; | 17 class SkFlattenableWriteBuffer; |
20 | 18 |
21 /** \class SkLanguage | 19 /** \class SkLanguage |
22 | 20 |
23 The SkLanguage class represents a human written language, and is used by | 21 The SkLanguage class represents a human written language, and is used by |
24 text draw operations to determine which glyph to draw when drawing | 22 text draw operations to determine which glyph to draw when drawing |
25 characters with variants (ie Han-derived characters). | 23 characters with variants (ie Han-derived characters). |
26 */ | 24 */ |
27 class SkLanguage { | 25 class SkLanguage { |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 void setUseFontFallbacks(bool useFontFallbacks) { | 116 void setUseFontFallbacks(bool useFontFallbacks) { |
119 fUseFontFallbacks = useFontFallbacks; | 117 fUseFontFallbacks = useFontFallbacks; |
120 } | 118 } |
121 | 119 |
122 private: | 120 private: |
123 SkLanguage fLanguage; | 121 SkLanguage fLanguage; |
124 FontVariant fFontVariant; | 122 FontVariant fFontVariant; |
125 bool fUseFontFallbacks; | 123 bool fUseFontFallbacks; |
126 }; | 124 }; |
127 | 125 |
128 #endif // #ifdef SK_BUILD_FOR_ANDROID | |
129 #endif // #ifndef SkPaintOptionsAndroid_DEFINED | 126 #endif // #ifndef SkPaintOptionsAndroid_DEFINED |
OLD | NEW |