| Index: media/video/capture/linux/video_capture_device_linux.h
|
| diff --git a/media/video/capture/linux/video_capture_device_linux.h b/media/video/capture/linux/video_capture_device_linux.h
|
| index 6a8dcee126163e987cdbd1eb8961b3b05da2b9c2..6efed991f18747be188e033121e8caba7cd702c1 100644
|
| --- a/media/video/capture/linux/video_capture_device_linux.h
|
| +++ b/media/video/capture/linux/video_capture_device_linux.h
|
| @@ -31,6 +31,12 @@ class VideoCaptureDeviceLinux : public VideoCaptureDevice {
|
|
|
| virtual void StopAndDeAllocate() OVERRIDE;
|
|
|
| + protected:
|
| + void SetRotation(int rotation);
|
| +
|
| + // Once |v4l2_thread_| is started, only called on that thread.
|
| + void SetRotationOnV4L2Thread(int rotation);
|
| +
|
| private:
|
| enum InternalState {
|
| kIdle, // The device driver is opened but camera is not in use.
|
| @@ -68,6 +74,10 @@ class VideoCaptureDeviceLinux : public VideoCaptureDevice {
|
| int timeout_count_;
|
| VideoCaptureFormat capture_format_;
|
|
|
| + // Clockwise rotation. This is only used on |v4l2_thread_| when it is
|
| + // running, or the constructor thread otherwise.
|
| + int rotation_;
|
| +
|
| DISALLOW_IMPLICIT_CONSTRUCTORS(VideoCaptureDeviceLinux);
|
| };
|
|
|
|
|