diff options
author | scherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-22 17:27:58 +0000 |
---|---|---|
committer | scherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-22 17:27:58 +0000 |
commit | 050b99242c2c385ff6b25658bc65b81b5576c12a (patch) | |
tree | bbb372f87f80ad93f7ab4a0c435b1089d5ceaa9d /media/video/video_decode_engine.h | |
parent | 83b62fe1a28679e8f325069d42474079e476675b (diff) | |
download | chromium_src-050b99242c2c385ff6b25658bc65b81b5576c12a.zip chromium_src-050b99242c2c385ff6b25658bc65b81b5576c12a.tar.gz chromium_src-050b99242c2c385ff6b25658bc65b81b5576c12a.tar.bz2 |
Remove VideoDecoder::ProvidesBuffer() and corresponding changes in VideoDecodeEngine.
Every implementation returned true so no reason to complicate client code.
Added OVERRIDE for relevant classes.
BUG=none
TEST=media_unittests, unit_tests
Review URL: http://codereview.chromium.org/7482007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93666 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/video/video_decode_engine.h')
-rw-r--r-- | media/video/video_decode_engine.h | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/media/video/video_decode_engine.h b/media/video/video_decode_engine.h index 2cefc44..fb6933d 100644 --- a/media/video/video_decode_engine.h +++ b/media/video/video_decode_engine.h @@ -19,8 +19,9 @@ class VideoDecodeContext; struct PipelineStatistics; -struct VideoStreamInfo { - VideoFrame::Format surface_format; +struct VideoCodecInfo { + // Other parameter is only meaningful when this is true. + bool success; // Can be different with container's value. uint32 surface_width; @@ -29,19 +30,6 @@ struct VideoStreamInfo { uint32 surface_height; }; -struct VideoCodecInfo { - // Other parameter is only meaningful when this is true. - bool success; - - // Whether decoder provides output buffer pool. - // TODO(hclam): This is not important anymore. Remove this. - bool provides_buffers; - - // Initial Stream Info. Only part of them could be valid. - // If they are not valid, Engine should update with OnFormatChange. - VideoStreamInfo stream_info; -}; - class VideoDecodeEngine { public: struct EventHandler { @@ -52,7 +40,6 @@ class VideoDecodeEngine { virtual void OnFlushComplete() = 0; virtual void OnSeekComplete() = 0; virtual void OnError() = 0; - virtual void OnFormatChange(VideoStreamInfo stream_info) = 0; // TODO(hclam): The following two methods shouldn't belong to this class // because they are not video decode events but used to send decoded |