• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2009 The Android Open Source Project
3  *
4  * Use of this source code is governed by a BSD-style license that can be
5  * found in the LICENSE file.
6  */
7 
8 #include "SkFontLCDConfig.h"
9 
10 static SkFontLCDConfig::LCDOrientation gLCDOrientation = SkFontLCDConfig::kHorizontal_LCDOrientation;
11 static SkFontLCDConfig::LCDOrder gLCDOrder = SkFontLCDConfig::kRGB_LCDOrder;
12 
GetSubpixelOrientation()13 SkFontLCDConfig::LCDOrientation SkFontLCDConfig::GetSubpixelOrientation() {
14     return gLCDOrientation;
15 }
16 
SetSubpixelOrientation(LCDOrientation orientation)17 void SkFontLCDConfig::SetSubpixelOrientation(LCDOrientation orientation) {
18     gLCDOrientation = orientation;
19 }
20 
GetSubpixelOrder()21 SkFontLCDConfig::LCDOrder SkFontLCDConfig::GetSubpixelOrder() {
22     return gLCDOrder;
23 }
24 
SetSubpixelOrder(LCDOrder order)25 void SkFontLCDConfig::SetSubpixelOrder(LCDOrder order) {
26     gLCDOrder = order;
27 }
28