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

Unified Diff: content/child/child_native_pixmap_manager_ozone.h

Issue 1128113011: ozone: Introduce ClientPixmap and ClientPixmapFactory for non-GPU processes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: NativePixmapManager is singleton Created 5 years, 5 months 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/child/child_native_pixmap_manager_ozone.h
diff --git a/content/child/child_native_pixmap_manager_ozone.h b/content/child/child_native_pixmap_manager_ozone.h
new file mode 100644
index 0000000000000000000000000000000000000000..4b80d0507342441a89ebd38cbe13bb2d2b55db70
--- /dev/null
+++ b/content/child/child_native_pixmap_manager_ozone.h
@@ -0,0 +1,35 @@
+// 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_NATIVE_PIXMAP_MANAGER_OZONE_H_
+#define CONTENT_CHILD_CHILD_NATIVE_PIXMAP_MANAGER_OZONE_H_
+
+#include "base/macros.h"
+#include "base/memory/scoped_ptr.h"
+#include "content/child/thread_safe_sender.h"
+#include "ui/ozone/public/native_pixmap_manager.h"
+
+namespace content {
+
+class ChildNativePixmapManager : public ui::NativePixmapManager {
+ public:
+ static ChildNativePixmapManager* CreateSingleton(ThreadSafeSender* sender);
+ ~ChildNativePixmapManager() override;
+
+ // ui::NativePixmapManager:
+ void Initialize(const base::FileDescriptor& device_fd) override;
+ std::vector<Configuration> GetSupportedNativePixmapConfigurations()
+ const override;
+
+ private:
+ ChildNativePixmapManager();
+
+ scoped_ptr<ui::NativePixmapManager> pixmap_manager_;
+
+ DISALLOW_COPY_AND_ASSIGN(ChildNativePixmapManager);
+};
+
+} // namespace content
+
+#endif // CONTENT_CHILD_CHILD_NATIVE_PIXMAP_MANAGER_OZONE_H_

Powered by Google App Engine
This is Rietveld 408576698