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/client_native_pixmap_manager_gbm.h" |
| 6 |
| 7 #include "base/file_descriptor_posix.h" |
| 8 #include "ui/ozone/public/client_native_pixmap_manager.h" |
| 9 |
| 10 namespace ui { |
| 11 |
| 12 namespace { |
| 13 |
| 14 class ClientNativePixmapManagerGbm : public ClientNativePixmapManager { |
| 15 public: |
| 16 ClientNativePixmapManagerGbm() {} |
| 17 ~ClientNativePixmapManagerGbm() override {} |
| 18 |
| 19 // ClientNativePixmapManager: |
| 20 std::vector<Configuration> GetSupportedConfigurations() const override { |
| 21 std::vector<Configuration> configurations = { |
| 22 {NATIVE_PIXMAP_FORMAT_BGRA_8888, NATIVE_PIXMAP_USAGE_SCANOUT}, |
| 23 {NATIVE_PIXMAP_FORMAT_RGBX_8888, NATIVE_PIXMAP_USAGE_SCANOUT}}; |
| 24 return configurations; |
| 25 } |
| 26 scoped_ptr<ClientNativePixmap> ImportClientNativePixmap( |
| 27 base::FileDescriptor handle, |
| 28 gfx::Size size, |
| 29 NativePixmapFormat format, |
| 30 NativePixmapUsage usage) override { |
| 31 NOTIMPLEMENTED(); |
| 32 return nullptr; |
| 33 } |
| 34 |
| 35 private: |
| 36 DISALLOW_COPY_AND_ASSIGN(ClientNativePixmapManagerGbm); |
| 37 }; |
| 38 |
| 39 } // namespace |
| 40 |
| 41 ClientNativePixmapManager* CreateClientNativePixmapManagerGbm() { |
| 42 return new ClientNativePixmapManagerGbm(); |
| 43 } |
| 44 |
| 45 } // namespace ui |
OLD | NEW |