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

Side by Side Diff: media/gpu/android/media_codec_video_decoder.cc

Issue 2672313006: media: Remove the unused NdkMediaCodecBridge (Closed)
Patch Set: rebase past conflict Created 3 years, 10 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 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_impl.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
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
OLDNEW
« no previous file with comments | « media/filters/android/media_codec_audio_decoder.cc ('k') | media/gpu/android_video_decode_accelerator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698