Chromium Code Reviews| OLD | NEW |
|---|---|
| (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) | |
| OLD | NEW |