export SkFontMgr_New_... experimental functions for testing in chrome
authorreed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Wed, 28 Aug 2013 20:31:58 +0000 (20:31 +0000)
committerreed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Wed, 28 Aug 2013 20:31:58 +0000 (20:31 +0000)
BUG=
R=eae@chromium.org

Review URL: https://codereview.chromium.org/23555004

git-svn-id: http://skia.googlecode.com/svn/trunk@10991 2bbb7eff-a529-9590-31e7-b0007b416f81

gm/fontmgr.cpp
include/ports/SkTypeface_win.h
src/ports/SkFontHost_win.cpp
src/ports/SkFontHost_win_dw.cpp
src/ports/SkFontMgr_default_dw.cpp
src/ports/SkFontMgr_default_gdi.cpp

index 9c300ab502e38d805d89f43bae5cfd07029ffc50..06288b2ab3c89d6b09936ddd1ffb70a2fb4abc11 100644 (file)
@@ -12,8 +12,7 @@
 #include "SkTypeface.h"
 
 #ifdef SK_BUILD_FOR_WIN
-    extern SkFontMgr* SkFontMgr_New_GDI();
-    extern SkFontMgr* SkFontMgr_New_DirectWrite();
+    #include "SkTypeface_win.h"
 #endif
 
 // limit this just so we don't take too long to draw
index fea5f474a0fd31e77fff63871a43f67675ba2ad9..e7dd4ab50ae77490598cac4a6833fd28c0ac23dc 100644 (file)
@@ -1,4 +1,3 @@
-
 /*
  * Copyright 2011 Google Inc.
  *
@@ -6,8 +5,6 @@
  * found in the LICENSE file.
  */
 
-
-
 #ifndef SkTypeface_win_DEFINED
 #define SkTypeface_win_DEFINED
 
@@ -36,4 +33,10 @@ SK_API void SkLOGFONTFromTypeface(const SkTypeface* typeface, LOGFONT* lf);
   */
 SK_API void SkTypeface_SetEnsureLOGFONTAccessibleProc(void (*)(const LOGFONT&));
 
+// Experimental!
+//
+class SkFontMgr;
+SK_API SkFontMgr* SkFontMgr_New_GDI();
+SK_API SkFontMgr* SkFontMgr_New_DirectWrite();
+
 #endif
index 7ba14aac4f848300e047033dc2d5bb592797adcc..4bce8b04c3e84ef297f1f4c7b0fbf75e6aa6b957 100755 (executable)
@@ -2391,7 +2391,6 @@ SkTypeface* SkFontHost::CreateTypefaceFromStream(SkStream* stream) {
 
 #endif
 
-extern SkFontMgr* SkFontMgr_New_GDI();
 SkFontMgr* SkFontMgr_New_GDI() {
     return SkNEW(SkFontMgrGDI);
 }
index 41a06f1ece49f0ae6499ba26ede260c2fc49d25a..cc9674e946ca1f5e9ca8e4bda91d89ac1e89f84d 100644 (file)
@@ -1899,7 +1899,6 @@ static HRESULT GetGetUserDefaultLocaleNameProc(GetUserDefaultLocaleNameProc* pro
     return S_OK;
 }
 
-extern SkFontMgr* SkFontMgr_New_DirectWrite();
 SkFontMgr* SkFontMgr_New_DirectWrite() {
     IDWriteFactory* factory;
     HRNM(get_dwrite_factory(&factory), "Could not get factory.");
index 3e09446e4817e65c702e5af2ed9449a4a8380d1c..e9ad295d6d72c81b97c022bc7ea25c8af878a113 100644 (file)
@@ -1,6 +1,5 @@
 #include "SkFontMgr.h"
-
-extern SkFontMgr* SkFontMgr_New_DirectWrite();
+#include "SkTypeface_win.h"
 
 SkFontMgr* SkFontMgr::Factory() {
     return SkFontMgr_New_DirectWrite();
index 243d0cc983edb34ac266d8d0e2b13025c6cf4095..c39ab81120294d46fde535def29cf94adf2d0089 100644 (file)
@@ -1,6 +1,5 @@
 #include "SkFontMgr.h"
-
-extern SkFontMgr* SkFontMgr_New_GDI();
+#include "SkTypeface_win.h"
 
 SkFontMgr* SkFontMgr::Factory() {
     return SkFontMgr_New_GDI();