aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar bungeman <bungeman@google.com>2015-02-23 08:25:00 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-02-23 08:25:00 -0800
commit7be2eb89cc85fc9fc05814957d152f3d20613657 (patch)
tree8550f3262ef404cb556783ff63f1c498534308d8 /src
parente2b580bbed5589f585a9672bfb1a539fdadeab5f (diff)
Remove SkFontHost includes and friends.
SkFontHost no longer exists as a class, so remove the includes and stop making it a friend. Review URL: https://codereview.chromium.org/943333004
Diffstat (limited to 'src')
-rw-r--r--src/core/SkTypeface.cpp2
-rw-r--r--src/ports/SkFontConfigTypeface.h2
-rw-r--r--src/ports/SkFontHost_FreeType.cpp1
-rw-r--r--src/ports/SkFontHost_fontconfig.cpp1
-rw-r--r--src/ports/SkFontHost_linux.cpp1
-rwxr-xr-xsrc/ports/SkFontHost_mac.cpp3
-rwxr-xr-xsrc/ports/SkFontHost_win.cpp1
7 files changed, 1 insertions, 10 deletions
diff --git a/src/core/SkTypeface.cpp b/src/core/SkTypeface.cpp
index 84cab097e0..ad928bb53e 100644
--- a/src/core/SkTypeface.cpp
+++ b/src/core/SkTypeface.cpp
@@ -69,7 +69,7 @@ SK_DECLARE_STATIC_MUTEX(gCreateDefaultMutex);
// As a template arguments, these must have external linkage.
SkTypeface* sk_create_default_typeface(int style) {
- // If backed by fontconfig, it's not safe to call SkFontHost::CreateTypeface concurrently.
+ // It is not safe to call FontConfigTypeface::LegacyCreateTypeface concurrently.
// To be safe, we serialize here with a mutex so only one call to
// CreateTypeface is happening at any given time.
// TODO(bungeman, mtklein): This is sad. Make our fontconfig code safe?
diff --git a/src/ports/SkFontConfigTypeface.h b/src/ports/SkFontConfigTypeface.h
index 74f43ed017..851bfb794f 100644
--- a/src/ports/SkFontConfigTypeface.h
+++ b/src/ports/SkFontConfigTypeface.h
@@ -42,8 +42,6 @@ public:
static SkTypeface* LegacyCreateTypeface(const char familyName[], SkTypeface::Style);
protected:
- friend class SkFontHost; // hack until we can make public versions
-
FontConfigTypeface(const SkFontStyle& style,
const SkFontConfigInterface::FontIdentity& fi,
const SkString& familyName)
diff --git a/src/ports/SkFontHost_FreeType.cpp b/src/ports/SkFontHost_FreeType.cpp
index 828d74a782..f462e1e142 100644
--- a/src/ports/SkFontHost_FreeType.cpp
+++ b/src/ports/SkFontHost_FreeType.cpp
@@ -11,7 +11,6 @@
#include "SkColorPriv.h"
#include "SkDescriptor.h"
#include "SkFDot6.h"
-#include "SkFontHost.h"
#include "SkFontHost_FreeType_common.h"
#include "SkGlyph.h"
#include "SkMask.h"
diff --git a/src/ports/SkFontHost_fontconfig.cpp b/src/ports/SkFontHost_fontconfig.cpp
index 4b5eddb44f..fa74f5121f 100644
--- a/src/ports/SkFontHost_fontconfig.cpp
+++ b/src/ports/SkFontHost_fontconfig.cpp
@@ -8,7 +8,6 @@
#include "SkFontConfigInterface.h"
#include "SkFontConfigTypeface.h"
#include "SkFontDescriptor.h"
-#include "SkFontHost.h"
#include "SkFontHost_FreeType_common.h"
#include "SkFontStream.h"
#include "SkStream.h"
diff --git a/src/ports/SkFontHost_linux.cpp b/src/ports/SkFontHost_linux.cpp
index c6f932fe6a..72508e989a 100644
--- a/src/ports/SkFontHost_linux.cpp
+++ b/src/ports/SkFontHost_linux.cpp
@@ -5,7 +5,6 @@
* found in the LICENSE file.
*/
-#include "SkFontHost.h"
#include "SkFontHost_FreeType_common.h"
#include "SkFontDescriptor.h"
#include "SkFontMgr.h"
diff --git a/src/ports/SkFontHost_mac.cpp b/src/ports/SkFontHost_mac.cpp
index 4518708334..fba8867de5 100755
--- a/src/ports/SkFontHost_mac.cpp
+++ b/src/ports/SkFontHost_mac.cpp
@@ -17,7 +17,6 @@
#include <CoreFoundation/CoreFoundation.h>
#endif
-#include "SkFontHost.h"
#include "SkCGUtils.h"
#include "SkColorPriv.h"
#include "SkDescriptor.h"
@@ -466,8 +465,6 @@ public:
AutoCFRelease<CTFontRef> fFontRef;
protected:
- friend class SkFontHost; // to access our protected members for deprecated methods
-
int onGetUPEM() const SK_OVERRIDE;
SkStreamAsset* onOpenStream(int* ttcIndex) const SK_OVERRIDE;
void onGetFamilyName(SkString* familyName) const SK_OVERRIDE;
diff --git a/src/ports/SkFontHost_win.cpp b/src/ports/SkFontHost_win.cpp
index a1d92fc216..7d39da2149 100755
--- a/src/ports/SkFontHost_win.cpp
+++ b/src/ports/SkFontHost_win.cpp
@@ -12,7 +12,6 @@
#include "SkData.h"
#include "SkDescriptor.h"
#include "SkFontDescriptor.h"
-#include "SkFontHost.h"
#include "SkGlyph.h"
#include "SkHRESULT.h"
#include "SkMaskGamma.h"