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