From f077324e1317fe2825c8a7969bf159b4efed2ba5 Mon Sep 17 00:00:00 2001 From: bungeman Date: Tue, 10 May 2016 14:32:07 -0700 Subject: Remove SkFontHost.h. What is left of this file is now in SkFontLCDConfig.h. Review-Url: https://codereview.chromium.org/1945883002 --- src/core/SkFontLCDConfig.cpp | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/core/SkFontLCDConfig.cpp (limited to 'src/core/SkFontLCDConfig.cpp') diff --git a/src/core/SkFontLCDConfig.cpp b/src/core/SkFontLCDConfig.cpp new file mode 100644 index 0000000000..3d1f35b58c --- /dev/null +++ b/src/core/SkFontLCDConfig.cpp @@ -0,0 +1,27 @@ +/* + * Copyright 2009 The Android Open Source Project + * + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ + +#include "SkFontLCDConfig.h" + +static SkFontLCDConfig::LCDOrientation gLCDOrientation = SkFontLCDConfig::kHorizontal_LCDOrientation; +static SkFontLCDConfig::LCDOrder gLCDOrder = SkFontLCDConfig::kRGB_LCDOrder; + +SkFontLCDConfig::LCDOrientation SkFontLCDConfig::GetSubpixelOrientation() { + return gLCDOrientation; +} + +void SkFontLCDConfig::SetSubpixelOrientation(LCDOrientation orientation) { + gLCDOrientation = orientation; +} + +SkFontLCDConfig::LCDOrder SkFontLCDConfig::GetSubpixelOrder() { + return gLCDOrder; +} + +void SkFontLCDConfig::SetSubpixelOrder(LCDOrder order) { + gLCDOrder = order; +} -- cgit v1.2.3