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 TegraV4L2Device used on | 5 // This file contains the implementation of TegraV4L2Device used on |
6 // Tegra platform. | 6 // Tegra platform. |
7 | 7 |
8 #ifndef CONTENT_COMMON_GPU_MEDIA_TEGRA_V4L2_DEVICE_H_ | 8 #ifndef CONTENT_COMMON_GPU_MEDIA_TEGRA_V4L2_DEVICE_H_ |
9 #define CONTENT_COMMON_GPU_MEDIA_TEGRA_V4L2_DEVICE_H_ | 9 #define CONTENT_COMMON_GPU_MEDIA_TEGRA_V4L2_DEVICE_H_ |
10 | 10 |
(...skipping 28 matching lines...) Expand all Loading... |
39 unsigned int buffer_index, | 39 unsigned int buffer_index, |
40 uint32_t v4l2_pixfmt, | 40 uint32_t v4l2_pixfmt, |
41 size_t num_v4l2_planes); | 41 size_t num_v4l2_planes); |
42 EGLBoolean DestroyEGLImage(EGLDisplay egl_display, | 42 EGLBoolean DestroyEGLImage(EGLDisplay egl_display, |
43 EGLImageKHR egl_image) override; | 43 EGLImageKHR egl_image) override; |
44 GLenum GetTextureTarget() override; | 44 GLenum GetTextureTarget() override; |
45 uint32 PreferredInputFormat() override; | 45 uint32 PreferredInputFormat() override; |
46 | 46 |
47 private: | 47 private: |
48 ~TegraV4L2Device() override; | 48 ~TegraV4L2Device() override; |
49 const Type type_; | |
50 | 49 |
51 // The actual device fd. | 50 // The actual device fd. |
52 int device_fd_; | 51 int device_fd_; |
53 | 52 |
54 DISALLOW_COPY_AND_ASSIGN(TegraV4L2Device); | 53 DISALLOW_COPY_AND_ASSIGN(TegraV4L2Device); |
55 }; | 54 }; |
56 | 55 |
57 } // namespace content | 56 } // namespace content |
58 | 57 |
59 #endif // CONTENT_COMMON_GPU_MEDIA_TEGRA_V4L2_DEVICE_H_ | 58 #endif // CONTENT_COMMON_GPU_MEDIA_TEGRA_V4L2_DEVICE_H_ |
OLD | NEW |