epoger@google.com | ec3ed6a | 2011-07-28 14:26:00 +0000 | [diff] [blame] | 1 | |
| 2 | /* |
| 3 | * Copyright 2009 The Android Open Source Project |
| 4 | * |
| 5 | * Use of this source code is governed by a BSD-style license that can be |
| 6 | * found in the LICENSE file. |
| 7 | */ |
| 8 | |
agl@chromium.org | 309485b | 2009-07-21 17:41:32 +0000 | [diff] [blame] | 9 | |
| 10 | #include "SkFontHost.h" |
| 11 | |
| 12 | static SkFontHost::LCDOrientation gLCDOrientation = SkFontHost::kHorizontal_LCDOrientation; |
| 13 | static SkFontHost::LCDOrder gLCDOrder = SkFontHost::kRGB_LCDOrder; |
| 14 | |
| 15 | // static |
| 16 | SkFontHost::LCDOrientation SkFontHost::GetSubpixelOrientation() |
| 17 | { |
| 18 | return gLCDOrientation; |
| 19 | } |
| 20 | |
| 21 | // static |
| 22 | void SkFontHost::SetSubpixelOrientation(LCDOrientation orientation) |
| 23 | { |
| 24 | gLCDOrientation = orientation; |
| 25 | } |
| 26 | |
| 27 | // static |
| 28 | SkFontHost::LCDOrder SkFontHost::GetSubpixelOrder() |
| 29 | { |
| 30 | return gLCDOrder; |
| 31 | } |
| 32 | |
| 33 | // static |
| 34 | void SkFontHost::SetSubpixelOrder(LCDOrder order) |
| 35 | { |
| 36 | gLCDOrder = order; |
| 37 | } |