| 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/gfx/linux/client_native_pixmap_dmabuf.h" |
| 6 | 6 |
| 7 #include <fcntl.h> | 7 #include <fcntl.h> |
| 8 #include <linux/version.h> | 8 #include <linux/version.h> |
| 9 #include <stddef.h> | 9 #include <stddef.h> |
| 10 #include <sys/mman.h> | 10 #include <sys/mman.h> |
| 11 #include <xf86drm.h> | 11 #include <xf86drm.h> |
| 12 | 12 |
| 13 #include "base/debug/crash_logging.h" | 13 #include "base/debug/crash_logging.h" |
| 14 #include "base/memory/ptr_util.h" | 14 #include "base/memory/ptr_util.h" |
| 15 #include "base/process/memory.h" | 15 #include "base/process/memory.h" |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 uint8_t* address = reinterpret_cast<uint8_t*>(data_); | 139 uint8_t* address = reinterpret_cast<uint8_t*>(data_); |
| 140 return address + pixmap_handle_.planes[plane].offset; | 140 return address + pixmap_handle_.planes[plane].offset; |
| 141 } | 141 } |
| 142 | 142 |
| 143 int ClientNativePixmapDmaBuf::GetStride(size_t plane) const { | 143 int ClientNativePixmapDmaBuf::GetStride(size_t plane) const { |
| 144 DCHECK_LT(plane, pixmap_handle_.planes.size()); | 144 DCHECK_LT(plane, pixmap_handle_.planes.size()); |
| 145 return pixmap_handle_.planes[plane].stride; | 145 return pixmap_handle_.planes[plane].stride; |
| 146 } | 146 } |
| 147 | 147 |
| 148 } // namespace ui | 148 } // namespace ui |
| OLD | NEW |