| 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 CONTENT_COMMON_GPU_MEDIA_GENERIC_V4L2_VIDEO_DEVICE_H_ | 8 #ifndef CONTENT_COMMON_GPU_MEDIA_GENERIC_V4L2_VIDEO_DEVICE_H_ |
| 9 #define CONTENT_COMMON_GPU_MEDIA_GENERIC_V4L2_VIDEO_DEVICE_H_ | 9 #define CONTENT_COMMON_GPU_MEDIA_GENERIC_V4L2_VIDEO_DEVICE_H_ |
| 10 | 10 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 const Type type_; | 45 const Type type_; |
| 46 | 46 |
| 47 // The actual device fd. | 47 // The actual device fd. |
| 48 int device_fd_; | 48 int device_fd_; |
| 49 | 49 |
| 50 // eventfd fd to signal device poll thread when its poll() should be | 50 // eventfd fd to signal device poll thread when its poll() should be |
| 51 // interrupted. | 51 // interrupted. |
| 52 int device_poll_interrupt_fd_; | 52 int device_poll_interrupt_fd_; |
| 53 | 53 |
| 54 DISALLOW_COPY_AND_ASSIGN(GenericV4L2Device); | 54 DISALLOW_COPY_AND_ASSIGN(GenericV4L2Device); |
| 55 |
| 56 // Lazily initialize static data after sandbox is enabled. Return false on |
| 57 // init failure. |
| 58 static bool PostSandboxInitialization(); |
| 55 }; | 59 }; |
| 56 } // namespace content | 60 } // namespace content |
| 57 | 61 |
| 58 #endif // CONTENT_COMMON_GPU_MEDIA_GENERIC_V4L2_VIDEO_DEVICE_H_ | 62 #endif // CONTENT_COMMON_GPU_MEDIA_GENERIC_V4L2_VIDEO_DEVICE_H_ |
| OLD | NEW |