| 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/common/client_native_pixmap_vgem.h" | 5 #include "ui/ozone/platform/drm/common/client_native_pixmap_vgem.h" |
| 6 | 6 |
| 7 #include <fcntl.h> | 7 #include <fcntl.h> |
| 8 #include <libdrm/vgem_drm.h> |
| 8 #include <stddef.h> | 9 #include <stddef.h> |
| 9 #include <sys/mman.h> | 10 #include <sys/mman.h> |
| 10 #include <vgem_drm.h> | |
| 11 #include <xf86drm.h> | 11 #include <xf86drm.h> |
| 12 | 12 |
| 13 #include "base/process/memory.h" | 13 #include "base/process/memory.h" |
| 14 #include "base/trace_event/trace_event.h" | 14 #include "base/trace_event/trace_event.h" |
| 15 | 15 |
| 16 namespace ui { | 16 namespace ui { |
| 17 | 17 |
| 18 // static | 18 // static |
| 19 scoped_ptr<ClientNativePixmap> ClientNativePixmapVgem::ImportFromDmabuf( | 19 scoped_ptr<ClientNativePixmap> ClientNativePixmapVgem::ImportFromDmabuf( |
| 20 int vgem_fd, | 20 int vgem_fd, |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 return data_; | 70 return data_; |
| 71 } | 71 } |
| 72 | 72 |
| 73 void ClientNativePixmapVgem::Unmap() {} | 73 void ClientNativePixmapVgem::Unmap() {} |
| 74 | 74 |
| 75 void ClientNativePixmapVgem::GetStride(int* stride) const { | 75 void ClientNativePixmapVgem::GetStride(int* stride) const { |
| 76 *stride = stride_; | 76 *stride = stride_; |
| 77 } | 77 } |
| 78 | 78 |
| 79 } // namespace ui | 79 } // namespace ui |
| OLD | NEW |