| 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 <fcntl.h> | 6 #include <fcntl.h> |
| 7 #include <libdrm/drm_fourcc.h> | 7 #include <libdrm/drm_fourcc.h> |
| 8 #include <linux/videodev2.h> | 8 #include <linux/videodev2.h> |
| 9 #include <poll.h> | 9 #include <poll.h> |
| 10 #include <sys/eventfd.h> | 10 #include <sys/eventfd.h> |
| 11 #include <sys/ioctl.h> | 11 #include <sys/ioctl.h> |
| 12 #include <sys/mman.h> | 12 #include <sys/mman.h> |
| 13 | 13 |
| 14 #include "base/files/scoped_file.h" | 14 #include "base/files/scoped_file.h" |
| 15 #include "base/posix/eintr_wrapper.h" | 15 #include "base/posix/eintr_wrapper.h" |
| 16 #include "base/trace_event/trace_event.h" | 16 #include "base/trace_event/trace_event.h" |
| 17 #include "content/common/gpu/media/generic_v4l2_video_device.h" | 17 #include "content/common/gpu/media/generic_v4l2_device.h" |
| 18 #include "ui/gl/egl_util.h" | 18 #include "ui/gl/egl_util.h" |
| 19 #include "ui/gl/gl_bindings.h" | 19 #include "ui/gl/gl_bindings.h" |
| 20 | 20 |
| 21 #if defined(USE_LIBV4L2) | 21 #if defined(USE_LIBV4L2) |
| 22 // Auto-generated for dlopen libv4l2 libraries | 22 // Auto-generated for dlopen libv4l2 libraries |
| 23 #include "content/common/gpu/media/v4l2_stubs.h" | 23 #include "content/common/gpu/media/v4l2_stubs.h" |
| 24 #include "third_party/v4l-utils/lib/include/libv4l2.h" | 24 #include "third_party/v4l-utils/lib/include/libv4l2.h" |
| 25 | 25 |
| 26 using content_common_gpu_media::kModuleV4l2; | 26 using content_common_gpu_media::kModuleV4l2; |
| 27 using content_common_gpu_media::InitializeStubs; | 27 using content_common_gpu_media::InitializeStubs; |
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 StubPathMap paths; | 289 StubPathMap paths; |
| 290 paths[kModuleV4l2].push_back(kV4l2Lib); | 290 paths[kModuleV4l2].push_back(kV4l2Lib); |
| 291 | 291 |
| 292 return InitializeStubs(paths); | 292 return InitializeStubs(paths); |
| 293 #else | 293 #else |
| 294 return true; | 294 return true; |
| 295 #endif | 295 #endif |
| 296 } | 296 } |
| 297 | 297 |
| 298 } // namespace content | 298 } // namespace content |
| OLD | NEW |