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

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

Issue 2365623003: Remove unused thread.h include in trace_event_impl.h and fix IWUU. (Closed)
Patch Set: Whitelist base DEPS for all web/tests Created 4 years, 2 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
« no previous file with comments | « media/cast/test/end2end_unittest.cc ('k') | third_party/WebKit/Source/web/tests/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/android_video_decode_accelerator.h" 5 #include "media/gpu/android_video_decode_accelerator.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <memory> 9 #include <memory>
10 10
11 #include "base/android/build_info.h" 11 #include "base/android/build_info.h"
12 #include "base/auto_reset.h" 12 #include "base/auto_reset.h"
13 #include "base/bind.h" 13 #include "base/bind.h"
14 #include "base/bind_helpers.h" 14 #include "base/bind_helpers.h"
15 #include "base/callback_helpers.h" 15 #include "base/callback_helpers.h"
16 #include "base/command_line.h" 16 #include "base/command_line.h"
17 #include "base/lazy_instance.h" 17 #include "base/lazy_instance.h"
18 #include "base/logging.h" 18 #include "base/logging.h"
19 #include "base/message_loop/message_loop.h" 19 #include "base/message_loop/message_loop.h"
20 #include "base/metrics/histogram.h" 20 #include "base/metrics/histogram.h"
21 #include "base/sys_info.h" 21 #include "base/sys_info.h"
22 #include "base/task_runner_util.h" 22 #include "base/task_runner_util.h"
23 #include "base/threading/thread.h"
23 #include "base/threading/thread_checker.h" 24 #include "base/threading/thread_checker.h"
24 #include "base/threading/thread_task_runner_handle.h" 25 #include "base/threading/thread_task_runner_handle.h"
25 #include "base/trace_event/trace_event.h" 26 #include "base/trace_event/trace_event.h"
26 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" 27 #include "gpu/command_buffer/service/gles2_cmd_decoder.h"
27 #include "gpu/command_buffer/service/mailbox_manager.h" 28 #include "gpu/command_buffer/service/mailbox_manager.h"
28 #include "gpu/ipc/service/gpu_channel.h" 29 #include "gpu/ipc/service/gpu_channel.h"
29 #include "media/base/android/media_codec_bridge.h" 30 #include "media/base/android/media_codec_bridge.h"
30 #include "media/base/android/media_codec_util.h" 31 #include "media/base/android/media_codec_util.h"
31 #include "media/base/bind_to_current_loop.h" 32 #include "media/base/bind_to_current_loop.h"
32 #include "media/base/bitstream_buffer.h" 33 #include "media/base/bitstream_buffer.h"
(...skipping 1667 matching lines...) Expand 10 before | Expand all | Expand 10 after
1700 1701
1701 bool AndroidVideoDecodeAccelerator::IsMediaCodecSoftwareDecodingForbidden() 1702 bool AndroidVideoDecodeAccelerator::IsMediaCodecSoftwareDecodingForbidden()
1702 const { 1703 const {
1703 // Prevent MediaCodec from using its internal software decoders when we have 1704 // Prevent MediaCodec from using its internal software decoders when we have
1704 // more secure and up to date versions in the renderer process. 1705 // more secure and up to date versions in the renderer process.
1705 return !config_.is_encrypted && (codec_config_->codec_ == kCodecVP8 || 1706 return !config_.is_encrypted && (codec_config_->codec_ == kCodecVP8 ||
1706 codec_config_->codec_ == kCodecVP9); 1707 codec_config_->codec_ == kCodecVP9);
1707 } 1708 }
1708 1709
1709 } // namespace media 1710 } // namespace media
OLDNEW
« no previous file with comments | « media/cast/test/end2end_unittest.cc ('k') | third_party/WebKit/Source/web/tests/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698