Chromium Code Reviews| Index: content/renderer/skia_sandbox_support_impl.h |
| diff --git a/content/renderer/skia_sandbox_support_impl.h b/content/renderer/skia_sandbox_support_impl.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..a81c02e2a686305470469a8980d9de4eae9e03a7 |
| --- /dev/null |
| +++ b/content/renderer/skia_sandbox_support_impl.h |
| @@ -0,0 +1,31 @@ |
| +// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CONTENT_RENDERER_SKIA_SANDBOX_SUPPORT_H_ |
| +#define CONTENT_RENDERER_SKIA_SANDBOX_SUPPORT_H_ |
| + |
| +#include "build/build_config.h" |
| + |
| +#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.
|
| + |
| +#include "base/memory/singleton.h" |
| +#include "skia/ext/SkFontHost_sandbox_win.h" |
| + |
| +class SkiaSandboxSupport : public skia::ISandboxSupport { |
| + public: |
| + static SkiaSandboxSupport* GetInstance(); |
| + virtual void EnsureFontLoad(LOGFONT lf); |
| + |
| + private: |
| + 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.
|
| + |
| + SkiaSandboxSupport(); |
| + virtual ~SkiaSandboxSupport(); |
| + |
| + DISALLOW_COPY_AND_ASSIGN(SkiaSandboxSupport); |
| +}; |
| + |
| +#endif // defined(OS_WIN) && defined(USE_SKIA) |
| + |
| +#endif // CONTENT_RENDERER_SKIA_SANDBOX_SUPPORT_H_ |