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

Unified 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 side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698