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

Unified Diff: media/base/android/video_decoder_job.h

Issue 623363002: Send metadata change to renderer after decoder is drained (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
Index: media/base/android/video_decoder_job.h
diff --git a/media/base/android/video_decoder_job.h b/media/base/android/video_decoder_job.h
index ac3dc27b108e997d0c6f909c53554562201c0eb5..c6005fb144bcc22cd6b9b523b3eda1d62626c578 100644
--- a/media/base/android/video_decoder_job.h
+++ b/media/base/android/video_decoder_job.h
@@ -35,13 +35,14 @@ class VideoDecoderJob : public MediaDecoderJob {
virtual bool HasStream() const OVERRIDE;
virtual void Flush() OVERRIDE;
virtual void ReleaseDecoderResources() OVERRIDE;
+ virtual void SetDemuxerConfigs(const DemuxerConfigs& configs) OVERRIDE;
bool next_video_data_is_iframe() {
return next_video_data_is_iframe_;
}
- int width() const { return width_; }
- int height() const { return height_; }
+ int output_width() const { return output_width_; }
+ int output_height() const { return output_height_; }
private:
// MediaDecoderJob implementation.
@@ -52,21 +53,25 @@ class VideoDecoderJob : public MediaDecoderJob {
base::TimeDelta current_presentation_timestamp,
const ReleaseOutputCompletionCallback& callback) OVERRIDE;
virtual bool ComputeTimeToRender() const OVERRIDE;
- virtual void UpdateDemuxerConfigs(const DemuxerConfigs& configs) OVERRIDE;
virtual bool IsCodecReconfigureNeeded(
const DemuxerConfigs& configs) const OVERRIDE;
virtual bool AreDemuxerConfigsChanged(
const DemuxerConfigs& configs) const OVERRIDE;
virtual bool CreateMediaCodecBridgeInternal() OVERRIDE;
virtual void CurrentDataConsumed(bool is_config_change) OVERRIDE;
+ virtual bool UpdateOutputFormat() OVERRIDE;
// Returns true if a protected surface is required for video playback.
bool IsProtectedSurfaceRequired();
// Video configs from the demuxer.
VideoCodec video_codec_;
- int width_;
- int height_;
+ int config_width_;
+ int config_height_;
+
+ // Video output format.
+ int output_width_;
+ int output_height_;
// The surface object currently owned by the player.
gfx::ScopedJavaSurface surface_;

Powered by Google App Engine
This is Rietveld 408576698