Index: content/child/child_client_native_pixmap_manager_ozone.h |
diff --git a/content/child/child_client_native_pixmap_manager_ozone.h b/content/child/child_client_native_pixmap_manager_ozone.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..5f31df652b9173cc465d3752eb031a7fd24d6f7c |
--- /dev/null |
+++ b/content/child/child_client_native_pixmap_manager_ozone.h |
@@ -0,0 +1,39 @@ |
+// Copyright 2015 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_CHILD_CHILD_CLIENT_NATIVE_PIXMAP_MANAGER_OZONE_H_ |
+#define CONTENT_CHILD_CHILD_CLIENT_NATIVE_PIXMAP_MANAGER_OZONE_H_ |
+ |
+#include "base/macros.h" |
+#include "base/memory/scoped_ptr.h" |
+#include "ui/ozone/public/client_native_pixmap_manager.h" |
+ |
+namespace content { |
+ |
+class ChildClientNativePixmapManager : public ui::ClientNativePixmapManager { |
+ public: |
+ static ChildClientNativePixmapManager* GetInstance(); |
+ ~ChildClientNativePixmapManager() override; |
+ |
+ // ui::ClientNativePixmapManager: |
+ void Initialize(const base::FileDescriptor& virtual_device) override; |
+ std::vector<Configuration> GetSupportedConfigurations() const override; |
+ scoped_ptr<ui::ClientNativePixmap> ImportClientNativePixmap( |
+ base::FileDescriptor handle, |
+ gfx::Size size, |
+ ui::NativePixmapFormat format, |
+ ui::NativePixmapUsage usage) override; |
+ |
+ private: |
+ friend struct ChildClientNativePixmapManagerTrait; |
+ ChildClientNativePixmapManager(); |
+ |
+ scoped_ptr<ui::ClientNativePixmapManager> pixmap_manager_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(ChildClientNativePixmapManager); |
+}; |
+ |
+} // namespace content |
+ |
+#endif // CONTENT_CHILD_CHILD_CLIENT_NATIVE_PIXMAP_MANAGER_OZONE_H_ |