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 #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_ | |
OLD | NEW |