Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(443)

Unified Diff: media/capture/video/linux/v4l2_capture_delegate.h

Issue 2479413002: Image Capture v4l2: reset all user controls to default values when closing device fd (Closed)
Patch Set: emircan@ comments and using while-loops ISO for-loops Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: media/capture/video/linux/v4l2_capture_delegate.h
diff --git a/media/capture/video/linux/v4l2_capture_delegate.h b/media/capture/video/linux/v4l2_capture_delegate.h
index e96835fe270cb79440344656bc8e6ffbfbd1130b..82896bbcf0ac6e5ee42b9f318bc564a633673567 100644
--- a/media/capture/video/linux/v4l2_capture_delegate.h
+++ b/media/capture/video/linux/v4l2_capture_delegate.h
@@ -30,7 +30,7 @@ namespace media {
// capture specifics are implemented in derived classes. Created and destroyed
// on the owner's thread, otherwise living and operating on |v4l2_task_runner_|.
// TODO(mcasas): Make this class a non-ref-counted.
-class V4L2CaptureDelegate final
+class CAPTURE_EXPORT V4L2CaptureDelegate final
: public base::RefCountedThreadSafe<V4L2CaptureDelegate> {
public:
// Retrieves the #planes for a given |fourcc|, or 0 if unknown.
@@ -65,6 +65,8 @@ class V4L2CaptureDelegate final
void SetRotation(int rotation);
private:
+ friend class V4L2CaptureDelegateTest;
+
friend class base::RefCountedThreadSafe<V4L2CaptureDelegate>;
~V4L2CaptureDelegate();

Powered by Google App Engine
This is Rietveld 408576698