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

Unified Diff: content/common/gpu/media/generic_v4l2_device.h

Issue 1093173002: Do not use libv4l if no plugin is registered. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 months 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: content/common/gpu/media/generic_v4l2_device.h
diff --git a/content/common/gpu/media/generic_v4l2_device.h b/content/common/gpu/media/generic_v4l2_device.h
index 94d656c65ce58d46c396985b3a57b9eb20490f93..0f8f7bc065d2426437d2c78c5de7e1ec2e67496b 100644
--- a/content/common/gpu/media/generic_v4l2_device.h
+++ b/content/common/gpu/media/generic_v4l2_device.h
@@ -43,6 +43,10 @@ class GenericV4L2Device : public V4L2Device {
private:
~GenericV4L2Device() override;
+
+ // Close |device_fd_|;
+ void Close();
+
const Type type_;
// The actual device fd.
@@ -52,6 +56,9 @@ class GenericV4L2Device : public V4L2Device {
// interrupted.
int device_poll_interrupt_fd_;
+ // Use libv4l2 when operating |device_fd_|.
+ bool use_libv4l2_;
+
DISALLOW_COPY_AND_ASSIGN(GenericV4L2Device);
// Lazily initialize static data after sandbox is enabled. Return false on
« no previous file with comments | « no previous file | content/common/gpu/media/generic_v4l2_device.cc » ('j') | content/common/gpu/media/generic_v4l2_device.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698