Index: skia/ext/SkFontHost_sandbox_win.cpp |
diff --git a/skia/ext/SkFontHost_sandbox_win.cpp b/skia/ext/SkFontHost_sandbox_win.cpp |
new file mode 100644 |
index 0000000000000000000000000000000000000000..255f7524db1846dd7d87550abb2521b15a2bfc53 |
--- /dev/null |
+++ b/skia/ext/SkFontHost_sandbox_win.cpp |
@@ -0,0 +1,28 @@ |
+// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "SkFontHost.h" |
+#include "SkTypeface.h" |
+ |
+#ifdef WIN32 |
vandebo (ex-Chrome)
2011/11/18 21:35:18
You should include build/build_config.h and use th
arthurhsu
2011/11/22 00:56:23
Done.
|
+ |
+#include "SkFontHost_sandbox_win.h" |
+#include "SkTypeface_win.h" |
+ |
+// static |
+void SkFontHost::EnsureTypefaceAccessible(const SkTypeface& typeface) { |
+ if (skia::g_SkiaSandboxSupport) { |
+ LOGFONT lf; |
+ SkLOGFONTFromTypeface(&typeface, &lf); |
+ skia::g_SkiaSandboxSupport->EnsureFontLoad(lf); |
+ } |
+} |
+ |
+#else |
+ |
+void SkFontHost::EnsureTypefaceAccessible(const SkTypeface& typeface) { |
vandebo (ex-Chrome)
2011/11/18 21:35:18
Lets use Skia's version in the non-windows case.
arthurhsu
2011/11/22 00:56:23
Done.
|
+ // No-op for all other platforms |
+} |
+ |
+#endif // WIN32 |