OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/media_codec_video_decoder.h" | 5 #include "media/gpu/android/media_codec_video_decoder.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "media/base/android/media_codec_bridge.h" |
8 #include "media/base/android/media_codec_util.h" | 9 #include "media/base/android/media_codec_util.h" |
9 #include "media/base/android/sdk_media_codec_bridge.h" | |
10 #include "media/base/video_codecs.h" | 10 #include "media/base/video_codecs.h" |
11 #include "media/base/video_decoder_config.h" | 11 #include "media/base/video_decoder_config.h" |
12 | 12 |
13 namespace media { | 13 namespace media { |
14 namespace { | 14 namespace { |
15 | 15 |
16 // Don't use MediaCodec's internal software decoders when we have more secure | 16 // Don't use MediaCodec's internal software decoders when we have more secure |
17 // and up to date versions in the renderer process. | 17 // and up to date versions in the renderer process. |
18 bool IsMediaCodecSoftwareDecodingForbidden(const VideoDecoderConfig& config) { | 18 bool IsMediaCodecSoftwareDecodingForbidden(const VideoDecoderConfig& config) { |
19 return !config.is_encrypted() && | 19 return !config.is_encrypted() && |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 bool MediaCodecVideoDecoder::CanReadWithoutStalling() const { | 101 bool MediaCodecVideoDecoder::CanReadWithoutStalling() const { |
102 NOTIMPLEMENTED(); | 102 NOTIMPLEMENTED(); |
103 return false; | 103 return false; |
104 } | 104 } |
105 | 105 |
106 int MediaCodecVideoDecoder::GetMaxDecodeRequests() const { | 106 int MediaCodecVideoDecoder::GetMaxDecodeRequests() const { |
107 return 4; | 107 return 4; |
108 } | 108 } |
109 | 109 |
110 } // namespace media | 110 } // namespace media |
OLD | NEW |