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

Unified Diff: content/renderer/skia_sandbox_support_impl.cc

Issue 8566026: Implement skia sandbox callback (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase and Update per code review Created 9 years, 1 month 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 | « content/content_renderer.gypi ('k') | skia/ext/SkFontHost_sandbox_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « content/content_renderer.gypi ('k') | skia/ext/SkFontHost_sandbox_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698