| 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/native_pixmap_handle_ozone.h" | 11 #include "ui/gfx/native_pixmap_handle_ozone.h" |
| 12 #include "ui/ozone/platform/drm/common/client_native_pixmap_dmabuf.h" | 12 #include "ui/ozone/platform/drm/common/client_native_pixmap_dmabuf.h" |
| 13 #include "ui/ozone/public/client_native_pixmap_factory.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 |
| 24 void* Map() override { | 24 void* Map() override { |
| 25 NOTREACHED(); | 25 NOTREACHED(); |
| 26 return nullptr; | 26 return nullptr; |
| 27 } | 27 } |
| 28 void Unmap() override { NOTREACHED(); } | 28 void Unmap() override { NOTREACHED(); } |
| 29 void GetStride(int* stride) const override { NOTREACHED(); } | 29 void GetStride(uint32_t* stride) const override { NOTREACHED(); } |
| 30 }; | 30 }; |
| 31 | 31 |
| 32 } // namespace | 32 } // namespace |
| 33 | 33 |
| 34 class ClientNativePixmapFactoryGbm : public ClientNativePixmapFactory { | 34 class ClientNativePixmapFactoryGbm : public ClientNativePixmapFactory { |
| 35 public: | 35 public: |
| 36 ClientNativePixmapFactoryGbm() {} | 36 ClientNativePixmapFactoryGbm() {} |
| 37 ~ClientNativePixmapFactoryGbm() override {} | 37 ~ClientNativePixmapFactoryGbm() override {} |
| 38 | 38 |
| 39 // ClientNativePixmapFactory: | 39 // ClientNativePixmapFactory: |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 } | 95 } |
| 96 | 96 |
| 97 DISALLOW_COPY_AND_ASSIGN(ClientNativePixmapFactoryGbm); | 97 DISALLOW_COPY_AND_ASSIGN(ClientNativePixmapFactoryGbm); |
| 98 }; | 98 }; |
| 99 | 99 |
| 100 ClientNativePixmapFactory* CreateClientNativePixmapFactoryGbm() { | 100 ClientNativePixmapFactory* CreateClientNativePixmapFactoryGbm() { |
| 101 return new ClientNativePixmapFactoryGbm(); | 101 return new ClientNativePixmapFactoryGbm(); |
| 102 } | 102 } |
| 103 | 103 |
| 104 } // namespace ui | 104 } // namespace ui |
| OLD | NEW |