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