Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(133)

Unified Diff: src/core/SkFontHost.cpp

Issue 1945883002: Remove SkFontHost.h. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Rename to reduce future confusion. Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « include/core/SkFontHost.h ('k') | src/core/SkFontLCDConfig.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkFontHost.cpp
diff --git a/src/core/SkFontHost.cpp b/src/core/SkFontHost.cpp
deleted file mode 100644
index 4f0dc8637d57d5ce7cf9296a66fef62decfb716a..0000000000000000000000000000000000000000
--- a/src/core/SkFontHost.cpp
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- * 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;
-}
-
-///////////////////////////////////////////////////////////////////////////////
-// Legacy wrappers : remove from SkFontHost when webkit switches to new API
-
-#include "SkFontHost.h"
-
-SkFontHost::LCDOrientation SkFontHost::GetSubpixelOrientation() {
- return (SkFontHost::LCDOrientation)SkFontLCDConfig::GetSubpixelOrientation();
-}
-
-void SkFontHost::SetSubpixelOrientation(LCDOrientation orientation) {
- SkFontLCDConfig::SetSubpixelOrientation((SkFontLCDConfig::LCDOrientation)orientation);
-}
-
-SkFontHost::LCDOrder SkFontHost::GetSubpixelOrder() {
- return (SkFontHost::LCDOrder)SkFontLCDConfig::GetSubpixelOrder();
-}
-
-void SkFontHost::SetSubpixelOrder(LCDOrder order) {
- SkFontLCDConfig::SetSubpixelOrder((SkFontLCDConfig::LCDOrder)order);
-}
« no previous file with comments | « include/core/SkFontHost.h ('k') | src/core/SkFontLCDConfig.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698