Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(254)

Side by Side Diff: media/gpu/v4l2_slice_video_decode_accelerator.cc

Issue 2596283002: Include-what-you-use for ThreadTaskRunnerHandle. (Closed)
Patch Set: rebase Created 3 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_slice_video_decode_accelerator.h" 5 #include "media/gpu/v4l2_slice_video_decode_accelerator.h"
6 6
7 #include <errno.h> 7 #include <errno.h>
8 #include <fcntl.h> 8 #include <fcntl.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 <string.h>
12 #include <sys/eventfd.h> 12 #include <sys/eventfd.h>
13 #include <sys/ioctl.h> 13 #include <sys/ioctl.h>
14 #include <sys/mman.h> 14 #include <sys/mman.h>
15 15
16 #include <memory> 16 #include <memory>
17 17
18 #include "base/bind.h" 18 #include "base/bind.h"
19 #include "base/bind_helpers.h" 19 #include "base/bind_helpers.h"
20 #include "base/callback.h" 20 #include "base/callback.h"
21 #include "base/callback_helpers.h" 21 #include "base/callback_helpers.h"
22 #include "base/command_line.h" 22 #include "base/command_line.h"
23 #include "base/macros.h" 23 #include "base/macros.h"
24 #include "base/memory/ptr_util.h" 24 #include "base/memory/ptr_util.h"
25 #include "base/numerics/safe_conversions.h" 25 #include "base/numerics/safe_conversions.h"
26 #include "base/single_thread_task_runner.h" 26 #include "base/single_thread_task_runner.h"
27 #include "base/strings/stringprintf.h" 27 #include "base/strings/stringprintf.h"
28 #include "base/threading/thread_task_runner_handle.h"
28 #include "media/base/bind_to_current_loop.h" 29 #include "media/base/bind_to_current_loop.h"
29 #include "media/base/media_switches.h" 30 #include "media/base/media_switches.h"
30 #include "media/gpu/shared_memory_region.h" 31 #include "media/gpu/shared_memory_region.h"
31 #include "ui/gl/gl_context.h" 32 #include "ui/gl/gl_context.h"
32 #include "ui/gl/scoped_binders.h" 33 #include "ui/gl/scoped_binders.h"
33 34
34 #define LOGF(level) LOG(level) << __func__ << "(): " 35 #define LOGF(level) LOG(level) << __func__ << "(): "
35 #define DLOGF(level) DLOG(level) << __func__ << "(): " 36 #define DLOGF(level) DLOG(level) << __func__ << "(): "
36 #define DVLOGF(level) DVLOG(level) << __func__ << "(): " 37 #define DVLOGF(level) DVLOG(level) << __func__ << "(): "
37 #define PLOGF(level) PLOG(level) << __func__ << "(): " 38 #define PLOGF(level) PLOG(level) << __func__ << "(): "
(...skipping 3256 matching lines...) Expand 10 before | Expand all | Expand 10 after
3294 V4L2SliceVideoDecodeAccelerator::GetSupportedProfiles() { 3295 V4L2SliceVideoDecodeAccelerator::GetSupportedProfiles() {
3295 scoped_refptr<V4L2Device> device = V4L2Device::Create(); 3296 scoped_refptr<V4L2Device> device = V4L2Device::Create();
3296 if (!device) 3297 if (!device)
3297 return SupportedProfiles(); 3298 return SupportedProfiles();
3298 3299
3299 return device->GetSupportedDecodeProfiles(arraysize(supported_input_fourccs_), 3300 return device->GetSupportedDecodeProfiles(arraysize(supported_input_fourccs_),
3300 supported_input_fourccs_); 3301 supported_input_fourccs_);
3301 } 3302 }
3302 3303
3303 } // namespace media 3304 } // namespace media
OLDNEW
« no previous file with comments | « media/gpu/ipc/service/gpu_video_encode_accelerator.cc ('k') | media/gpu/vaapi_video_encode_accelerator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698