Index: media/mojo/services/mojo_video_decoder.cc |
diff --git a/media/mojo/services/mojo_audio_decoder.cc b/media/mojo/services/mojo_video_decoder.cc |
similarity index 61% |
copy from media/mojo/services/mojo_audio_decoder.cc |
copy to media/mojo/services/mojo_video_decoder.cc |
index 14a7a000e4c29375420ca8376088ebd81ff8c820..6f12cfe7e26c847c568f3f60d899b8cbc7c5eb6a 100644 |
--- a/media/mojo/services/mojo_audio_decoder.cc |
+++ b/media/mojo/services/mojo_video_decoder.cc |
@@ -2,7 +2,7 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#include "media/mojo/services/mojo_audio_decoder.h" |
+#include "media/mojo/services/mojo_video_decoder.h" |
#include "base/bind.h" |
#include "base/location.h" |
@@ -12,19 +12,20 @@ |
namespace media { |
-MojoAudioDecoder::MojoAudioDecoder() { |
+MojoVideoDecoder::MojoVideoDecoder() { |
DVLOG(1) << __FUNCTION__; |
} |
-MojoAudioDecoder::~MojoAudioDecoder() { |
+MojoVideoDecoder::~MojoVideoDecoder() { |
DVLOG(1) << __FUNCTION__; |
} |
-std::string MojoAudioDecoder::GetDisplayName() const { |
- return "MojoAudioDecoder"; |
+std::string MojoVideoDecoder::GetDisplayName() const { |
+ return "MojoVideoDecoder"; |
} |
-void MojoAudioDecoder::Initialize(const AudioDecoderConfig& config, |
+void MojoVideoDecoder::Initialize(const VideoDecoderConfig& config, |
+ bool low_delay, |
CdmContext* cdm_context, |
const InitCB& init_cb, |
const OutputCB& output_cb) { |
@@ -37,7 +38,7 @@ void MojoAudioDecoder::Initialize(const AudioDecoderConfig& config, |
task_runner_->PostTask(FROM_HERE, base::Bind(init_cb, true)); |
} |
-void MojoAudioDecoder::Decode(const scoped_refptr<DecoderBuffer>& buffer, |
+void MojoVideoDecoder::Decode(const scoped_refptr<DecoderBuffer>& buffer, |
const DecodeCB& decode_cb) { |
DVLOG(3) << __FUNCTION__; |
NOTIMPLEMENTED(); |
@@ -46,15 +47,27 @@ void MojoAudioDecoder::Decode(const scoped_refptr<DecoderBuffer>& buffer, |
task_runner_->PostTask(FROM_HERE, base::Bind(decode_cb, kDecodeError)); |
} |
-void MojoAudioDecoder::Reset(const base::Closure& closure) { |
+void MojoVideoDecoder::Reset(const base::Closure& closure) { |
DVLOG(2) << __FUNCTION__; |
NOTIMPLEMENTED(); |
} |
-bool MojoAudioDecoder::NeedsBitstreamConversion() const { |
+bool MojoVideoDecoder::NeedsBitstreamConversion() const { |
DVLOG(1) << __FUNCTION__; |
NOTIMPLEMENTED(); |
return false; |
} |
+bool MojoVideoDecoder::CanReadWithoutStalling() const { |
+ DVLOG(1) << __FUNCTION__; |
+ NOTIMPLEMENTED(); |
+ return true; |
+} |
+ |
+int MojoVideoDecoder::GetMaxDecodeRequests() const { |
+ DVLOG(1) << __FUNCTION__; |
+ NOTIMPLEMENTED(); |
+ return 1; |
+} |
+ |
} // namespace media |