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

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: Fix errors in checkin 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
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"
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)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698