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 #include "media/gpu/v4l2_video_decode_accelerator.h" | 5 #include "media/gpu/v4l2_video_decode_accelerator.h" |
6 | 6 |
7 #include <dlfcn.h> | 7 #include <dlfcn.h> |
8 #include <errno.h> | 8 #include <errno.h> |
9 #include <fcntl.h> | 9 #include <fcntl.h> |
10 #include <linux/videodev2.h> | 10 #include <linux/videodev2.h> |
11 #include <poll.h> | 11 #include <poll.h> |
12 #include <string.h> | 12 #include <string.h> |
13 #include <sys/eventfd.h> | 13 #include <sys/eventfd.h> |
14 #include <sys/ioctl.h> | 14 #include <sys/ioctl.h> |
15 #include <sys/mman.h> | 15 #include <sys/mman.h> |
16 | 16 |
17 #include "base/bind.h" | 17 #include "base/bind.h" |
18 #include "base/command_line.h" | 18 #include "base/command_line.h" |
19 #include "base/message_loop/message_loop.h" | 19 #include "base/message_loop/message_loop.h" |
20 #include "base/numerics/safe_conversions.h" | 20 #include "base/numerics/safe_conversions.h" |
21 #include "base/thread_task_runner_handle.h" | 21 #include "base/threading/thread_task_runner_handle.h" |
22 #include "base/trace_event/trace_event.h" | 22 #include "base/trace_event/trace_event.h" |
23 #include "build/build_config.h" | 23 #include "build/build_config.h" |
24 #include "media/base/bind_to_current_loop.h" | 24 #include "media/base/bind_to_current_loop.h" |
25 #include "media/base/media_switches.h" | 25 #include "media/base/media_switches.h" |
26 #include "media/filters/h264_parser.h" | 26 #include "media/filters/h264_parser.h" |
27 #include "media/gpu/shared_memory_region.h" | 27 #include "media/gpu/shared_memory_region.h" |
28 #include "ui/gfx/geometry/rect.h" | 28 #include "ui/gfx/geometry/rect.h" |
29 #include "ui/gl/gl_context.h" | 29 #include "ui/gl/gl_context.h" |
30 #include "ui/gl/scoped_binders.h" | 30 #include "ui/gl/scoped_binders.h" |
31 | 31 |
(...skipping 2207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2239 Enqueue(); | 2239 Enqueue(); |
2240 } | 2240 } |
2241 } | 2241 } |
2242 | 2242 |
2243 void V4L2VideoDecodeAccelerator::ImageProcessorError() { | 2243 void V4L2VideoDecodeAccelerator::ImageProcessorError() { |
2244 LOG(ERROR) << "Image processor error"; | 2244 LOG(ERROR) << "Image processor error"; |
2245 NOTIFY_ERROR(PLATFORM_FAILURE); | 2245 NOTIFY_ERROR(PLATFORM_FAILURE); |
2246 } | 2246 } |
2247 | 2247 |
2248 } // namespace media | 2248 } // namespace media |
OLD | NEW |