Chromium Code Reviews

Side by Side Diff: ui/ozone/platform/drm/common/native_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: address nits Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
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/native_pixmap_manager_gbm.h"
6
7 #include "ui/ozone/public/native_pixmap_manager.h"
8
9 namespace ui {
10
11 namespace {
12
13 class NativePixmapManagerGbm : public NativePixmapManager {
14 public:
15 NativePixmapManagerGbm() {}
16 ~NativePixmapManagerGbm() override {}
17
18 // NativePixmapManager:
19 std::vector<Configuration> GetSupportedNativePixmapConfigurations()
20 const override {
21 std::vector<Configuration> configurations = {
22 {SurfaceFactoryOzone::BGRA_8888, SurfaceFactoryOzone::SCANOUT},
23 {SurfaceFactoryOzone::RGBX_8888, SurfaceFactoryOzone::SCANOUT}};
24 return configurations;
25 }
26
27 private:
28 DISALLOW_COPY_AND_ASSIGN(NativePixmapManagerGbm);
29 };
30
31 } // namespace
32
33 NativePixmapManager* CreateNativePixmapManagerGbm() {
34 return new NativePixmapManagerGbm();
35 }
36
37 } // namespace ui
OLDNEW

Powered by Google App Engine