Index: content/renderer/skia_sandbox_support_impl.cc |
diff --git a/content/renderer/skia_sandbox_support_impl.cc b/content/renderer/skia_sandbox_support_impl.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..97b4062a87f81c656001e7e4d140ef567b31a290 |
--- /dev/null |
+++ b/content/renderer/skia_sandbox_support_impl.cc |
@@ -0,0 +1,26 @@ |
+// 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 "content/renderer/skia_sandbox_support_impl.h" |
+//#include "content/renderer/render_thread.h" |
+ |
+#include "build/build_config.h" |
+ |
+#if defined(OS_WIN) && defined(USE_SKIA) |
+ |
+#include "content/public/renderer/render_thread.h" |
+#include "skia/ext/SkFontHost_sandbox_win.h" |
+ |
+namespace skia { |
+ |
+void SandboxSupport::EnsureFontLoad(LOGFONT logfont) { |
vandebo (ex-Chrome)
2011/11/17 17:11:04
This is adding a circular dependency between skia
arthurhsu
2011/11/18 07:01:53
Done.
|
+ content::RenderThread* render_thread = content::RenderThread::Get(); |
+ if (render_thread) { |
+ render_thread->PreCacheFont(logfont); |
+ } |
+} |
+ |
+} // namespace skia |
+ |
+#endif // defined(OS_WIN) && defined(USE_SKIA) |