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

Side by Side 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, 4 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "ui/ozone/platform/drm/common/client_pixmap_manager_gbm.h"
6
7 #include "base/file_descriptor_posix.h"
8 #include "ui/ozone/public/client_pixmap_manager.h"
9
10 namespace ui {
11
12 namespace {
13
14 class ClientPixmapManagerGbm : public ClientPixmapManager {
15 public:
16 ClientPixmapManagerGbm() {}
17 ~ClientPixmapManagerGbm() override {}
18
19 // ClientPixmapManager:
20 std::vector<Configuration> GetSupportedConfigurations() const override {
21 std::vector<Configuration> configurations = {
22 {PIXMAP_FORMAT_BGRA_8888, PIXMAP_USAGE_SCANOUT},
23 {PIXMAP_FORMAT_RGBX_8888, PIXMAP_USAGE_SCANOUT}};
24 return configurations;
25 }
26 scoped_ptr<ClientPixmap> ImportClientPixmap(base::FileDescriptor handle,
27 gfx::Size size,
28 PixmapFormat format,
29 PixmapUsage usage) override {
30 NOTIMPLEMENTED();
31 return nullptr;
32 }
33
34 private:
35 DISALLOW_COPY_AND_ASSIGN(ClientPixmapManagerGbm);
36 };
37
38 } // namespace
39
40 ClientPixmapManager* CreateClientPixmapManagerGbm() {
41 return new ClientPixmapManagerGbm();
42 }
43
44 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698