| 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 #ifndef CONTENT_COMMON_GPU_MEDIA_V4L2_IMAGE_PROCESSOR_H_ | 5 #ifndef CONTENT_COMMON_GPU_MEDIA_V4L2_IMAGE_PROCESSOR_H_ |
| 6 #define CONTENT_COMMON_GPU_MEDIA_V4L2_IMAGE_PROCESSOR_H_ | 6 #define CONTENT_COMMON_GPU_MEDIA_V4L2_IMAGE_PROCESSOR_H_ |
| 7 | 7 |
| 8 #include <queue> | 8 #include <queue> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 gfx::Size output_allocated_size_; | 126 gfx::Size output_allocated_size_; |
| 127 | 127 |
| 128 media::VideoFrame::Format input_format_; | 128 media::VideoFrame::Format input_format_; |
| 129 media::VideoFrame::Format output_format_; | 129 media::VideoFrame::Format output_format_; |
| 130 uint32 input_format_fourcc_; | 130 uint32 input_format_fourcc_; |
| 131 uint32 output_format_fourcc_; | 131 uint32 output_format_fourcc_; |
| 132 | 132 |
| 133 size_t input_planes_count_; | 133 size_t input_planes_count_; |
| 134 size_t output_planes_count_; | 134 size_t output_planes_count_; |
| 135 | 135 |
| 136 // Our original calling task runner for the child thread. | 136 // Our original calling message loop for the child thread. |
| 137 const scoped_refptr<base::SingleThreadTaskRunner> child_task_runner_; | 137 const scoped_refptr<base::MessageLoopProxy> child_message_loop_proxy_; |
| 138 | 138 |
| 139 // V4L2 device in use. | 139 // V4L2 device in use. |
| 140 scoped_refptr<V4L2Device> device_; | 140 scoped_refptr<V4L2Device> device_; |
| 141 | 141 |
| 142 // Thread to communicate with the device on. | 142 // Thread to communicate with the device on. |
| 143 base::Thread device_thread_; | 143 base::Thread device_thread_; |
| 144 // Thread used to poll the V4L2 for events only. | 144 // Thread used to poll the V4L2 for events only. |
| 145 base::Thread device_poll_thread_; | 145 base::Thread device_poll_thread_; |
| 146 | 146 |
| 147 // All the below members are to be accessed from device_thread_ only | 147 // All the below members are to be accessed from device_thread_ only |
| (...skipping 24 matching lines...) Expand all Loading... |
| 172 | 172 |
| 173 // Weak factory for producing weak pointers on the device_thread_ | 173 // Weak factory for producing weak pointers on the device_thread_ |
| 174 base::WeakPtrFactory<V4L2ImageProcessor> device_weak_factory_; | 174 base::WeakPtrFactory<V4L2ImageProcessor> device_weak_factory_; |
| 175 | 175 |
| 176 DISALLOW_COPY_AND_ASSIGN(V4L2ImageProcessor); | 176 DISALLOW_COPY_AND_ASSIGN(V4L2ImageProcessor); |
| 177 }; | 177 }; |
| 178 | 178 |
| 179 } // namespace content | 179 } // namespace content |
| 180 | 180 |
| 181 #endif // CONTENT_COMMON_GPU_MEDIA_V4L2_IMAGE_PROCESSOR_H_ | 181 #endif // CONTENT_COMMON_GPU_MEDIA_V4L2_IMAGE_PROCESSOR_H_ |
| OLD | NEW |