Chromium Code Reviews| 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 #ifndef UI_OZONE_PLATFORM_DRM_COMMON_CLIENT_NATIVE_PIXMAP_DMABUF_H_ | 5 #ifndef UI_OZONE_PLATFORM_DRM_COMMON_CLIENT_NATIVE_PIXMAP_DMABUF_H_ |
| 6 #define UI_OZONE_PLATFORM_DRM_COMMON_CLIENT_NATIVE_PIXMAP_DMABUF_H_ | 6 #define UI_OZONE_PLATFORM_DRM_COMMON_CLIENT_NATIVE_PIXMAP_DMABUF_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 12 matching lines...) Expand all Loading... | |
| 23 ~ClientNativePixmapDmaBuf() override; | 23 ~ClientNativePixmapDmaBuf() override; |
| 24 | 24 |
| 25 // Overridden from ClientNativePixmap. | 25 // Overridden from ClientNativePixmap. |
| 26 void* Map() override; | 26 void* Map() override; |
| 27 void Unmap() override; | 27 void Unmap() override; |
| 28 void GetStride(int* stride) const override; | 28 void GetStride(int* stride) const override; |
| 29 | 29 |
| 30 private: | 30 private: |
| 31 ClientNativePixmapDmaBuf(int dmabuf_fd, const gfx::Size& size, int stride); | 31 ClientNativePixmapDmaBuf(int dmabuf_fd, const gfx::Size& size, int stride); |
| 32 | 32 |
| 33 int dmabuf_fd_; | |
|
dshwang
2016/03/29 13:23:40
how about using base::ScopedFD?
vignatti (out of this project)
2016/03/29 21:08:30
Done.
| |
| 33 const gfx::Size size_; | 34 const gfx::Size size_; |
| 34 const int stride_; | 35 const int stride_; |
| 35 void* data_; | 36 void* data_; |
| 36 | 37 |
| 37 DISALLOW_COPY_AND_ASSIGN(ClientNativePixmapDmaBuf); | 38 DISALLOW_COPY_AND_ASSIGN(ClientNativePixmapDmaBuf); |
| 38 }; | 39 }; |
| 39 | 40 |
| 40 } // namespace ui | 41 } // namespace ui |
| 41 | 42 |
| 42 #endif // UI_OZONE_PLATFORM_DRM_COMMON_CLIENT_NATIVE_PIXMAP_DMABUF_H_ | 43 #endif // UI_OZONE_PLATFORM_DRM_COMMON_CLIENT_NATIVE_PIXMAP_DMABUF_H_ |
| OLD | NEW |