| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 MEDIA_CAPTURE_VIDEO_LINUX_V4L2_CAPTURE_DELEGATE_H_ | 5 #ifndef MEDIA_CAPTURE_VIDEO_LINUX_V4L2_CAPTURE_DELEGATE_H_ |
| 6 #define MEDIA_CAPTURE_VIDEO_LINUX_V4L2_CAPTURE_DELEGATE_H_ | 6 #define MEDIA_CAPTURE_VIDEO_LINUX_V4L2_CAPTURE_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 std::unique_ptr<VideoCaptureDevice::Client> client_; | 80 std::unique_ptr<VideoCaptureDevice::Client> client_; |
| 81 base::ScopedFD device_fd_; | 81 base::ScopedFD device_fd_; |
| 82 | 82 |
| 83 // Vector of BufferTracker to keep track of mmap()ed pointers and their use. | 83 // Vector of BufferTracker to keep track of mmap()ed pointers and their use. |
| 84 class BufferTracker; | 84 class BufferTracker; |
| 85 std::vector<scoped_refptr<BufferTracker>> buffer_tracker_pool_; | 85 std::vector<scoped_refptr<BufferTracker>> buffer_tracker_pool_; |
| 86 | 86 |
| 87 bool is_capturing_; | 87 bool is_capturing_; |
| 88 int timeout_count_; | 88 int timeout_count_; |
| 89 | 89 |
| 90 base::TimeTicks first_ref_time_; |
| 91 |
| 90 // Clockwise rotation in degrees. This value should be 0, 90, 180, or 270. | 92 // Clockwise rotation in degrees. This value should be 0, 90, 180, or 270. |
| 91 int rotation_; | 93 int rotation_; |
| 92 | 94 |
| 93 DISALLOW_COPY_AND_ASSIGN(V4L2CaptureDelegate); | 95 DISALLOW_COPY_AND_ASSIGN(V4L2CaptureDelegate); |
| 94 }; | 96 }; |
| 95 | 97 |
| 96 } // namespace media | 98 } // namespace media |
| 97 | 99 |
| 98 #endif // MEDIA_CAPTURE_VIDEO_LINUX_V4L2_CAPTURE_DELEGATE_H_ | 100 #endif // MEDIA_CAPTURE_VIDEO_LINUX_V4L2_CAPTURE_DELEGATE_H_ |
| OLD | NEW |