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

Side by Side Diff: media/gpu/generic_v4l2_device.h

Issue 2151653004: Fix a -Wunused-private-member warning in a //media/gpu file. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: s/use_libvl2_/use_libv4l2_/ Created 4 years, 5 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 unified diff | Download patch
« no previous file with comments | « no previous file | media/gpu/generic_v4l2_device.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 // This file contains the implementation of GenericV4L2Device used on 5 // This file contains the implementation of GenericV4L2Device used on
6 // platforms, which provide generic V4L2 video codec devices. 6 // platforms, which provide generic V4L2 video codec devices.
7 7
8 #ifndef MEDIA_GPU_GENERIC_V4L2_DEVICE_H_ 8 #ifndef MEDIA_GPU_GENERIC_V4L2_DEVICE_H_
9 #define MEDIA_GPU_GENERIC_V4L2_DEVICE_H_ 9 #define MEDIA_GPU_GENERIC_V4L2_DEVICE_H_
10 10
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 private: 57 private:
58 ~GenericV4L2Device() override; 58 ~GenericV4L2Device() override;
59 59
60 // The actual device fd. 60 // The actual device fd.
61 base::ScopedFD device_fd_; 61 base::ScopedFD device_fd_;
62 62
63 // eventfd fd to signal device poll thread when its poll() should be 63 // eventfd fd to signal device poll thread when its poll() should be
64 // interrupted. 64 // interrupted.
65 base::ScopedFD device_poll_interrupt_fd_; 65 base::ScopedFD device_poll_interrupt_fd_;
66 66
67 #if USE_LIBV4L2
67 // Use libv4l2 when operating |device_fd_|. 68 // Use libv4l2 when operating |device_fd_|.
68 bool use_libv4l2_; 69 bool use_libv4l2_;
70 #endif
69 71
70 DISALLOW_COPY_AND_ASSIGN(GenericV4L2Device); 72 DISALLOW_COPY_AND_ASSIGN(GenericV4L2Device);
71 73
72 // Lazily initialize static data after sandbox is enabled. Return false on 74 // Lazily initialize static data after sandbox is enabled. Return false on
73 // init failure. 75 // init failure.
74 static bool PostSandboxInitialization(); 76 static bool PostSandboxInitialization();
75 }; 77 };
76 } // namespace media 78 } // namespace media
77 79
78 #endif // MEDIA_GPU_GENERIC_V4L2_DEVICE_H_ 80 #endif // MEDIA_GPU_GENERIC_V4L2_DEVICE_H_
OLDNEW
« no previous file with comments | « no previous file | media/gpu/generic_v4l2_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698