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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/content_renderer.gypi ('k') | skia/ext/SkFontHost_sandbox_win.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 //#include "content/renderer/skia_sandbox_support_impl.h"
6 //#include "content/renderer/render_thread.h"
7
8 #include "build/build_config.h"
9
10 #if defined(OS_WIN) && defined(USE_SKIA)
11
12 #include "content/public/renderer/render_thread.h"
13 #include "skia/ext/SkFontHost_sandbox_win.h"
14
15 namespace skia {
16
17 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.
18 content::RenderThread* render_thread = content::RenderThread::Get();
19 if (render_thread) {
20 render_thread->PreCacheFont(logfont);
21 }
22 }
23
24 } // namespace skia
25
26 #endif // defined(OS_WIN) && defined(USE_SKIA)
OLDNEW
« 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