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_DEVICE_H_ |
9 #define CONTENT_COMMON_GPU_MEDIA_GENERIC_V4L2_VIDEO_DEVICE_H_ | 9 #define CONTENT_COMMON_GPU_MEDIA_GENERIC_V4L2_DEVICE_H_ |
10 | 10 |
11 #include "content/common/gpu/media/v4l2_video_device.h" | 11 #include "content/common/gpu/media/v4l2_device.h" |
12 | 12 |
13 namespace content { | 13 namespace content { |
14 | 14 |
15 class GenericV4L2Device : public V4L2Device { | 15 class GenericV4L2Device : public V4L2Device { |
16 public: | 16 public: |
17 explicit GenericV4L2Device(Type type); | 17 explicit GenericV4L2Device(Type type); |
18 | 18 |
19 // V4L2Device implementation. | 19 // V4L2Device implementation. |
20 int Ioctl(int request, void* arg) override; | 20 int Ioctl(int request, void* arg) override; |
21 bool Poll(bool poll_device, bool* event_pending) override; | 21 bool Poll(bool poll_device, bool* event_pending) override; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 int device_poll_interrupt_fd_; | 53 int device_poll_interrupt_fd_; |
54 | 54 |
55 DISALLOW_COPY_AND_ASSIGN(GenericV4L2Device); | 55 DISALLOW_COPY_AND_ASSIGN(GenericV4L2Device); |
56 | 56 |
57 // Lazily initialize static data after sandbox is enabled. Return false on | 57 // Lazily initialize static data after sandbox is enabled. Return false on |
58 // init failure. | 58 // init failure. |
59 static bool PostSandboxInitialization(); | 59 static bool PostSandboxInitialization(); |
60 }; | 60 }; |
61 } // namespace content | 61 } // namespace content |
62 | 62 |
63 #endif // CONTENT_COMMON_GPU_MEDIA_GENERIC_V4L2_VIDEO_DEVICE_H_ | 63 #endif // CONTENT_COMMON_GPU_MEDIA_GENERIC_V4L2_DEVICE_H_ |
OLD | NEW |