| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |