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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 // empty. | 101 // empty. |
102 void EnqueueFrameAndTriggerFrameDelivery( | 102 void EnqueueFrameAndTriggerFrameDelivery( |
103 const scoped_refptr<VideoFrame>& frame); | 103 const scoped_refptr<VideoFrame>& frame); |
104 | 104 |
105 // Static method is to allow it to run even after GVD is deleted. | 105 // Static method is to allow it to run even after GVD is deleted. |
106 static void ReleaseMailbox( | 106 static void ReleaseMailbox( |
107 base::WeakPtr<GpuVideoDecoder> decoder, | 107 base::WeakPtr<GpuVideoDecoder> decoder, |
108 const scoped_refptr<media::GpuVideoAcceleratorFactories>& factories, | 108 const scoped_refptr<media::GpuVideoAcceleratorFactories>& factories, |
109 int64 picture_buffer_id, | 109 int64 picture_buffer_id, |
110 uint32 texture_id, | 110 uint32 texture_id, |
111 scoped_ptr<gpu::MailboxHolder> mailbox_holder); | 111 const std::vector<uint32>& release_sync_points); |
112 // Indicate the picture buffer can be reused by the decoder. | 112 // Indicate the picture buffer can be reused by the decoder. |
113 void ReusePictureBuffer(int64 picture_buffer_id); | 113 void ReusePictureBuffer(int64 picture_buffer_id); |
114 | 114 |
115 void RecordBufferData( | 115 void RecordBufferData( |
116 const BitstreamBuffer& bitstream_buffer, const DecoderBuffer& buffer); | 116 const BitstreamBuffer& bitstream_buffer, const DecoderBuffer& buffer); |
117 void GetBufferData(int32 id, base::TimeDelta* timetamp, | 117 void GetBufferData(int32 id, base::TimeDelta* timetamp, |
118 gfx::Rect* visible_rect, gfx::Size* natural_size); | 118 gfx::Rect* visible_rect, gfx::Size* natural_size); |
119 | 119 |
120 void DestroyVDA(); | 120 void DestroyVDA(); |
121 | 121 |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 // Bound to factories_->GetMessageLoop(). | 192 // Bound to factories_->GetMessageLoop(). |
193 // NOTE: Weak pointers must be invalidated before all other member variables. | 193 // NOTE: Weak pointers must be invalidated before all other member variables. |
194 base::WeakPtrFactory<GpuVideoDecoder> weak_factory_; | 194 base::WeakPtrFactory<GpuVideoDecoder> weak_factory_; |
195 | 195 |
196 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecoder); | 196 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecoder); |
197 }; | 197 }; |
198 | 198 |
199 } // namespace media | 199 } // namespace media |
200 | 200 |
201 #endif // MEDIA_FILTERS_GPU_VIDEO_DECODER_H_ | 201 #endif // MEDIA_FILTERS_GPU_VIDEO_DECODER_H_ |
OLD | NEW |