OLD | NEW |
(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 |
OLD | NEW |