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

Side by Side Diff: content/renderer/skia_sandbox_support_impl.h

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 #ifndef CONTENT_RENDERER_SKIA_SANDBOX_SUPPORT_H_
6 #define CONTENT_RENDERER_SKIA_SANDBOX_SUPPORT_H_
7
8 #include "build/build_config.h"
9
10 #if defined(OS_WIN) && defined(USE_SKIA)
vandebo (ex-Chrome) 2011/11/18 21:35:18 This is win only, so give the file a _win suffix.
arthurhsu 2011/11/22 00:56:23 Done.
11
12 #include "base/memory/singleton.h"
13 #include "skia/ext/SkFontHost_sandbox_win.h"
14
15 class SkiaSandboxSupport : public skia::ISandboxSupport {
16 public:
17 static SkiaSandboxSupport* GetInstance();
18 virtual void EnsureFontLoad(LOGFONT lf);
19
20 private:
21 friend struct DefaultSingletonTraits<SkiaSandboxSupport>;
vandebo (ex-Chrome) 2011/11/18 21:35:18 Should this be a LeakySingleton?
arthurhsu 2011/11/22 00:56:23 Use global static function pointer instead.
22
23 SkiaSandboxSupport();
24 virtual ~SkiaSandboxSupport();
25
26 DISALLOW_COPY_AND_ASSIGN(SkiaSandboxSupport);
27 };
28
29 #endif // defined(OS_WIN) && defined(USE_SKIA)
30
31 #endif // CONTENT_RENDERER_SKIA_SANDBOX_SUPPORT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698