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

Unified Diff: ui/ozone/public/native_pixmap_manager.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: address nits 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: ui/ozone/public/native_pixmap_manager.h
diff --git a/ui/ozone/public/native_pixmap_manager.h b/ui/ozone/public/native_pixmap_manager.h
new file mode 100644
index 0000000000000000000000000000000000000000..296e434cdb10b6eaa74342d4c7d27a9f05517c51
--- /dev/null
+++ b/ui/ozone/public/native_pixmap_manager.h
@@ -0,0 +1,44 @@
+// 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 UI_OZONE_PUBLIC_NATIVE_PIXMAP_MANAGER_H_
+#define UI_OZONE_PUBLIC_NATIVE_PIXMAP_MANAGER_H_
+
+#include <vector>
+
+#include "ui/ozone/ozone_export.h"
+#include "ui/ozone/public/surface_factory_ozone.h"
+
+namespace ui {
+
+// The Ozone interface allows external implementations to hook into Chromium to
+// provide a native pixmap for Browser and Render process.
reveman 2015/07/23 18:25:23 This doesn't match the interface. All this interfa
dshwang 2015/07/24 12:19:00 Future CL will add "scoped_refptr<NativePixmap> Cr
reveman 2015/07/24 14:54:07 Please include all functions (with NOTIMPLEMENTED
dshwang 2015/07/24 18:20:18 Ok, I'll do it in next patch.
+class OZONE_EXPORT NativePixmapManager {
+ public:
+ static NativePixmapManager* GetInstance();
+ static void SetInstance(NativePixmapManager* instance);
+
+ static scoped_ptr<NativePixmapManager> Create();
+
+ virtual ~NativePixmapManager();
+
+ struct Configuration {
+ SurfaceFactoryOzone::BufferFormat format;
+ SurfaceFactoryOzone::BufferUsage usage;
+ };
+
+ // Gets supported format/usage configurations.
+ virtual std::vector<Configuration> GetSupportedNativePixmapConfigurations()
+ const = 0;
+
+ protected:
+ NativePixmapManager();
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(NativePixmapManager);
+};
+
+} // namespace ui
+
+#endif // UI_OZONE_PUBLIC_NATIVE_PIXMAP_MANAGER_H_

Powered by Google App Engine
This is Rietveld 408576698