OLD | NEW |
---|---|
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 // This file contains the implementation of ExynosV4L2Device used on | 5 // This file contains the implementation of ExynosV4L2Device used on |
6 // Exynos platform. | 6 // Exynos platform. |
7 | 7 |
8 #ifndef CONTENT_COMMON_GPU_MEDIA_EXYNOS_V4L2_VIDEO_DEVICE_H_ | 8 #ifndef CONTENT_COMMON_GPU_MEDIA_EXYNOS_V4L2_VIDEO_DEVICE_H_ |
9 #define CONTENT_COMMON_GPU_MEDIA_EXYNOS_V4L2_VIDEO_DEVICE_H_ | 9 #define CONTENT_COMMON_GPU_MEDIA_EXYNOS_V4L2_VIDEO_DEVICE_H_ |
10 | 10 |
(...skipping 14 matching lines...) Expand all Loading... | |
25 void* Mmap(void* addr, | 25 void* Mmap(void* addr, |
26 unsigned int len, | 26 unsigned int len, |
27 int prot, | 27 int prot, |
28 int flags, | 28 int flags, |
29 unsigned int offset) OVERRIDE; | 29 unsigned int offset) OVERRIDE; |
30 void Munmap(void* addr, unsigned int len) OVERRIDE; | 30 void Munmap(void* addr, unsigned int len) OVERRIDE; |
31 | 31 |
32 // Does all the initialization of device fds, returns true on success. | 32 // Does all the initialization of device fds, returns true on success. |
33 bool Initialize(); | 33 bool Initialize(); |
34 | 34 |
35 EGLImageKHR CreateEGLImage(EGLDisplay egl_display, | |
36 EGLint attrib[], | |
37 unsigned int texture_id, | |
38 unsigned int buffer_index) OVERRIDE; | |
39 | |
40 unsigned int GetTextureTarget(); | |
Pawel Osciak
2014/02/10 06:36:17
Documentation for methods please.
Also, texture ta
| |
41 | |
35 private: | 42 private: |
36 // The actual device fd. | 43 // The actual device fd. |
37 int device_fd_; | 44 int device_fd_; |
38 | 45 |
39 // eventfd fd to signal device poll thread when its poll() should be | 46 // eventfd fd to signal device poll thread when its poll() should be |
40 // interrupted. | 47 // interrupted. |
41 int device_poll_interrupt_fd_; | 48 int device_poll_interrupt_fd_; |
42 | 49 |
43 DISALLOW_COPY_AND_ASSIGN(ExynosV4L2Device); | 50 DISALLOW_COPY_AND_ASSIGN(ExynosV4L2Device); |
44 }; | 51 }; |
45 } // namespace content | 52 } // namespace content |
46 | 53 |
47 #endif // CONTENT_COMMON_GPU_MEDIA_EXYNOS_V4L2_VIDEO_DEVICE_H_ | 54 #endif // CONTENT_COMMON_GPU_MEDIA_EXYNOS_V4L2_VIDEO_DEVICE_H_ |
OLD | NEW |