| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #ifndef SkFontLCDConfig_DEFINED | 8 #ifndef SkFontLCDConfig_DEFINED |
| 9 #define SkFontLCDConfig_DEFINED | 9 #define SkFontLCDConfig_DEFINED |
| 10 | 10 |
| 11 #include "SkTypes.h" | 11 #include "SkTypes.h" |
| 12 | 12 |
| 13 class SkFontLCDConfig { | 13 class SK_API SkFontLCDConfig { |
| 14 public: | 14 public: |
| 15 /** LCDs either have their color elements arranged horizontally or | 15 /** LCDs either have their color elements arranged horizontally or |
| 16 vertically. When rendering subpixel glyphs we need to know which way | 16 vertically. When rendering subpixel glyphs we need to know which way |
| 17 round they are. | 17 round they are. |
| 18 | 18 |
| 19 Note, if you change this after startup, you'll need to flush the glyph | 19 Note, if you change this after startup, you'll need to flush the glyph |
| 20 cache because it'll have the wrong type of masks cached. | 20 cache because it'll have the wrong type of masks cached. |
| 21 | 21 |
| 22 @deprecated use SkPixelGeometry instead. | 22 @deprecated use SkPixelGeometry instead. |
| 23 */ | 23 */ |
| (...skipping 25 matching lines...) Expand all Loading... |
| 49 kNONE_LCDOrder = 2 | 49 kNONE_LCDOrder = 2 |
| 50 }; | 50 }; |
| 51 | 51 |
| 52 /** @deprecated set on Device creation. */ | 52 /** @deprecated set on Device creation. */ |
| 53 static void SetSubpixelOrder(LCDOrder order); | 53 static void SetSubpixelOrder(LCDOrder order); |
| 54 /** @deprecated get from Device. */ | 54 /** @deprecated get from Device. */ |
| 55 static LCDOrder GetSubpixelOrder(); | 55 static LCDOrder GetSubpixelOrder(); |
| 56 }; | 56 }; |
| 57 | 57 |
| 58 #endif | 58 #endif |
| OLD | NEW |