| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef MEDIA_FILTERS_GPU_VIDEO_DECODER_H_ | 5 #ifndef MEDIA_FILTERS_GPU_VIDEO_DECODER_H_ |
| 6 #define MEDIA_FILTERS_GPU_VIDEO_DECODER_H_ | 6 #define MEDIA_FILTERS_GPU_VIDEO_DECODER_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 const PipelineStatusCB& status_cb) OVERRIDE; | 46 const PipelineStatusCB& status_cb) OVERRIDE; |
| 47 virtual void Decode(const scoped_refptr<DecoderBuffer>& buffer, | 47 virtual void Decode(const scoped_refptr<DecoderBuffer>& buffer, |
| 48 const DecodeCB& decode_cb) OVERRIDE; | 48 const DecodeCB& decode_cb) OVERRIDE; |
| 49 virtual void Reset(const base::Closure& closure) OVERRIDE; | 49 virtual void Reset(const base::Closure& closure) OVERRIDE; |
| 50 virtual void Stop(const base::Closure& closure) OVERRIDE; | 50 virtual void Stop(const base::Closure& closure) OVERRIDE; |
| 51 virtual bool HasAlpha() const OVERRIDE; | 51 virtual bool HasAlpha() const OVERRIDE; |
| 52 virtual bool NeedsBitstreamConversion() const OVERRIDE; | 52 virtual bool NeedsBitstreamConversion() const OVERRIDE; |
| 53 virtual bool CanReadWithoutStalling() const OVERRIDE; | 53 virtual bool CanReadWithoutStalling() const OVERRIDE; |
| 54 | 54 |
| 55 // VideoDecodeAccelerator::Client implementation. | 55 // VideoDecodeAccelerator::Client implementation. |
| 56 virtual void NotifyInitializeDone() OVERRIDE; | |
| 57 virtual void ProvidePictureBuffers(uint32 count, | 56 virtual void ProvidePictureBuffers(uint32 count, |
| 58 const gfx::Size& size, | 57 const gfx::Size& size, |
| 59 uint32 texture_target) OVERRIDE; | 58 uint32 texture_target) OVERRIDE; |
| 60 virtual void DismissPictureBuffer(int32 id) OVERRIDE; | 59 virtual void DismissPictureBuffer(int32 id) OVERRIDE; |
| 61 virtual void PictureReady(const media::Picture& picture) OVERRIDE; | 60 virtual void PictureReady(const media::Picture& picture) OVERRIDE; |
| 62 virtual void NotifyEndOfBitstreamBuffer(int32 id) OVERRIDE; | 61 virtual void NotifyEndOfBitstreamBuffer(int32 id) OVERRIDE; |
| 63 virtual void NotifyFlushDone() OVERRIDE; | 62 virtual void NotifyFlushDone() OVERRIDE; |
| 64 virtual void NotifyResetDone() OVERRIDE; | 63 virtual void NotifyResetDone() OVERRIDE; |
| 65 virtual void NotifyError(media::VideoDecodeAccelerator::Error error) OVERRIDE; | 64 virtual void NotifyError(media::VideoDecodeAccelerator::Error error) OVERRIDE; |
| 66 | 65 |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 // Set during ProvidePictureBuffers(), used for checking and implementing | 186 // Set during ProvidePictureBuffers(), used for checking and implementing |
| 188 // HasAvailableOutputFrames(). | 187 // HasAvailableOutputFrames(). |
| 189 int available_pictures_; | 188 int available_pictures_; |
| 190 | 189 |
| 191 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecoder); | 190 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecoder); |
| 192 }; | 191 }; |
| 193 | 192 |
| 194 } // namespace media | 193 } // namespace media |
| 195 | 194 |
| 196 #endif // MEDIA_FILTERS_GPU_VIDEO_DECODER_H_ | 195 #endif // MEDIA_FILTERS_GPU_VIDEO_DECODER_H_ |
| OLD | NEW |