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

Unified Diff: ui/ozone/platform/drm/common/client_pixmap_manager_gbm.cc

Issue 1128113011: ozone: Introduce ClientPixmap and ClientPixmapFactory for non-GPU processes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Introduce ClientPixmap and rename to ClientPixmapManager 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/platform/drm/common/client_pixmap_manager_gbm.cc
diff --git a/ui/ozone/platform/drm/common/client_pixmap_manager_gbm.cc b/ui/ozone/platform/drm/common/client_pixmap_manager_gbm.cc
new file mode 100644
index 0000000000000000000000000000000000000000..68a950d248bbba0cc3d36473f49a87d093a89aee
--- /dev/null
+++ b/ui/ozone/platform/drm/common/client_pixmap_manager_gbm.cc
@@ -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.
+
+#include "ui/ozone/platform/drm/common/client_pixmap_manager_gbm.h"
+
+#include "base/file_descriptor_posix.h"
+#include "ui/ozone/public/client_pixmap_manager.h"
+
+namespace ui {
+
+namespace {
+
+class ClientPixmapManagerGbm : public ClientPixmapManager {
+ public:
+ ClientPixmapManagerGbm() {}
+ ~ClientPixmapManagerGbm() override {}
+
+ // ClientPixmapManager:
+ std::vector<Configuration> GetSupportedConfigurations() const override {
+ std::vector<Configuration> configurations = {
+ {PIXMAP_FORMAT_BGRA_8888, PIXMAP_USAGE_SCANOUT},
+ {PIXMAP_FORMAT_RGBX_8888, PIXMAP_USAGE_SCANOUT}};
+ return configurations;
+ }
+ scoped_ptr<ClientPixmap> ImportClientPixmap(base::FileDescriptor handle,
+ gfx::Size size,
+ PixmapFormat format,
+ PixmapUsage usage) override {
+ NOTIMPLEMENTED();
+ return nullptr;
+ }
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(ClientPixmapManagerGbm);
+};
+
+} // namespace
+
+ClientPixmapManager* CreateClientPixmapManagerGbm() {
+ return new ClientPixmapManagerGbm();
+}
+
+} // namespace ui

Powered by Google App Engine
This is Rietveld 408576698