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