| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "ui/ozone/platform/drm/client_native_pixmap_factory_gbm.h" | 5 #include "ui/ozone/platform/drm/client_native_pixmap_factory_gbm.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
| 11 #include "ui/gfx/client_native_pixmap_factory.h" |
| 11 #include "ui/gfx/native_pixmap_handle.h" | 12 #include "ui/gfx/native_pixmap_handle.h" |
| 12 #include "ui/ozone/platform/drm/common/client_native_pixmap_dmabuf.h" | 13 #include "ui/ozone/platform/drm/common/client_native_pixmap_dmabuf.h" |
| 13 #include "ui/ozone/public/client_native_pixmap_factory.h" | |
| 14 | 14 |
| 15 namespace ui { | 15 namespace ui { |
| 16 | 16 |
| 17 namespace { | 17 namespace { |
| 18 | 18 |
| 19 class ClientNativePixmapGbm : public ClientNativePixmap { | 19 class ClientNativePixmapGbm : public ClientNativePixmap { |
| 20 public: | 20 public: |
| 21 ClientNativePixmapGbm() {} | 21 ClientNativePixmapGbm() {} |
| 22 ~ClientNativePixmapGbm() override {} | 22 ~ClientNativePixmapGbm() override {} |
| 23 | 23 |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 } | 108 } |
| 109 | 109 |
| 110 DISALLOW_COPY_AND_ASSIGN(ClientNativePixmapFactoryGbm); | 110 DISALLOW_COPY_AND_ASSIGN(ClientNativePixmapFactoryGbm); |
| 111 }; | 111 }; |
| 112 | 112 |
| 113 ClientNativePixmapFactory* CreateClientNativePixmapFactoryGbm() { | 113 ClientNativePixmapFactory* CreateClientNativePixmapFactoryGbm() { |
| 114 return new ClientNativePixmapFactoryGbm(); | 114 return new ClientNativePixmapFactoryGbm(); |
| 115 } | 115 } |
| 116 | 116 |
| 117 } // namespace ui | 117 } // namespace ui |
| OLD | NEW |