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" | |
|
vandebo (ex-Chrome)
2011/11/18 21:35:18
Remove commented lines.
arthurhsu
2011/11/22 00:56:23
File removed due to design change.
| |
| 6 //#include "content/renderer/render_thread.h" | |
| 7 | |
| 8 #include "content/renderer/skia_sandbox_support_impl.h" | |
| 9 | |
| 10 #if defined(OS_WIN) && defined(USE_SKIA) | |
| 11 | |
| 12 #include "content/public/renderer/render_thread.h" | |
| 13 | |
| 14 // static | |
| 15 SkiaSandboxSupport* SkiaSandboxSupport::GetInstance() { | |
| 16 return Singleton<SkiaSandboxSupport>::get(); | |
| 17 } | |
| 18 | |
| 19 void SkiaSandboxSupport::EnsureFontLoad(LOGFONT logfont) { | |
| 20 content::RenderThread* render_thread = content::RenderThread::Get(); | |
| 21 if (render_thread) { | |
| 22 render_thread->PreCacheFont(logfont); | |
| 23 } | |
| 24 } | |
| 25 | |
| 26 SkiaSandboxSupport::SkiaSandboxSupport() { | |
| 27 skia::g_SkiaSandboxSupport = this; | |
| 28 } | |
| 29 | |
| 30 SkiaSandboxSupport::~SkiaSandboxSupport() { | |
| 31 if (skia::g_SkiaSandboxSupport == this) { | |
| 32 skia::g_SkiaSandboxSupport = NULL; | |
| 33 } | |
| 34 } | |
| 35 | |
| 36 #endif // defined(OS_WIN) && defined(USE_SKIA) | |
| OLD | NEW |