| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_dmabuf.h" | 5 #include "ui/ozone/platform/drm/common/client_native_pixmap_dmabuf.h" |
| 6 | 6 |
| 7 #include <fcntl.h> | 7 #include <fcntl.h> |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <sys/mman.h> | 9 #include <sys/mman.h> |
| 10 #include <xf86drm.h> | 10 #include <xf86drm.h> |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 TRACE_EVENT0("drm", "DmaBuf:Map"); | 89 TRACE_EVENT0("drm", "DmaBuf:Map"); |
| 90 PrimeSyncStart(dmabuf_fd_.get()); | 90 PrimeSyncStart(dmabuf_fd_.get()); |
| 91 return data_; | 91 return data_; |
| 92 } | 92 } |
| 93 | 93 |
| 94 void ClientNativePixmapDmaBuf::Unmap() { | 94 void ClientNativePixmapDmaBuf::Unmap() { |
| 95 TRACE_EVENT0("drm", "DmaBuf:Unmap"); | 95 TRACE_EVENT0("drm", "DmaBuf:Unmap"); |
| 96 PrimeSyncEnd(dmabuf_fd_.get()); | 96 PrimeSyncEnd(dmabuf_fd_.get()); |
| 97 } | 97 } |
| 98 | 98 |
| 99 void ClientNativePixmapDmaBuf::GetStride(int* stride) const { | 99 void ClientNativePixmapDmaBuf::GetStride(uint32_t* stride) const { |
| 100 *stride = stride_; | 100 *stride = stride_; |
| 101 } | 101 } |
| 102 | 102 |
| 103 } // namespace ui | 103 } // namespace ui |
| OLD | NEW |