aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkFontLCDConfig.cpp
diff options
context:
space:
mode:
authorGravatar bungeman <bungeman@google.com>2016-05-10 14:32:07 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-05-10 14:32:07 -0700
commitf077324e1317fe2825c8a7969bf159b4efed2ba5 (patch)
tree1fc961c194f7e8556dae046d7dd305cc6908e5b6 /src/core/SkFontLCDConfig.cpp
parentfd0b33dee682ac7def48c414533561dff4336d2b (diff)
Remove SkFontHost.h.
What is left of this file is now in SkFontLCDConfig.h. Review-Url: https://codereview.chromium.org/1945883002
Diffstat (limited to 'src/core/SkFontLCDConfig.cpp')
-rw-r--r--src/core/SkFontLCDConfig.cpp27
1 files changed, 27 insertions, 0 deletions
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;
+}