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 | 5 |
6 #include <errno.h> | 6 #include <errno.h> |
7 #include <fcntl.h> | 7 #include <fcntl.h> |
8 #include <libdrm/drm_fourcc.h> | 8 #include <libdrm/drm_fourcc.h> |
9 #include <linux/videodev2.h> | 9 #include <linux/videodev2.h> |
10 #include <poll.h> | 10 #include <poll.h> |
| 11 #include <string.h> |
11 #include <sys/eventfd.h> | 12 #include <sys/eventfd.h> |
12 #include <sys/ioctl.h> | 13 #include <sys/ioctl.h> |
13 #include <sys/mman.h> | 14 #include <sys/mman.h> |
14 | 15 |
15 #include "base/files/scoped_file.h" | 16 #include "base/files/scoped_file.h" |
16 #include "base/macros.h" | 17 #include "base/macros.h" |
17 #include "base/posix/eintr_wrapper.h" | 18 #include "base/posix/eintr_wrapper.h" |
18 #include "base/trace_event/trace_event.h" | 19 #include "base/trace_event/trace_event.h" |
19 #include "build/build_config.h" | 20 #include "build/build_config.h" |
20 #include "content/common/gpu/media/generic_v4l2_device.h" | 21 #include "content/common/gpu/media/generic_v4l2_device.h" |
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
298 StubPathMap paths; | 299 StubPathMap paths; |
299 paths[kModuleV4l2].push_back(kV4l2Lib); | 300 paths[kModuleV4l2].push_back(kV4l2Lib); |
300 | 301 |
301 return InitializeStubs(paths); | 302 return InitializeStubs(paths); |
302 #else | 303 #else |
303 return true; | 304 return true; |
304 #endif | 305 #endif |
305 } | 306 } |
306 | 307 |
307 } // namespace content | 308 } // namespace content |
OLD | NEW |