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() OVERRIDE; | 50 virtual void Stop() 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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 // Bound to factories_->GetMessageLoop(). | 193 // Bound to factories_->GetMessageLoop(). |
195 // NOTE: Weak pointers must be invalidated before all other member variables. | 194 // NOTE: Weak pointers must be invalidated before all other member variables. |
196 base::WeakPtrFactory<GpuVideoDecoder> weak_factory_; | 195 base::WeakPtrFactory<GpuVideoDecoder> weak_factory_; |
197 | 196 |
198 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecoder); | 197 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecoder); |
199 }; | 198 }; |
200 | 199 |
201 } // namespace media | 200 } // namespace media |
202 | 201 |
203 #endif // MEDIA_FILTERS_GPU_VIDEO_DECODER_H_ | 202 #endif // MEDIA_FILTERS_GPU_VIDEO_DECODER_H_ |
OLD | NEW |