OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CONTENT_RENDERER_MEDIA_RTC_VIDEO_DECODER_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_RTC_VIDEO_DECODER_H_ |
6 #define CONTENT_RENDERER_MEDIA_RTC_VIDEO_DECODER_H_ | 6 #define CONTENT_RENDERER_MEDIA_RTC_VIDEO_DECODER_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 const media::PictureBuffer& pb, | 149 const media::PictureBuffer& pb, |
150 uint32_t timestamp, | 150 uint32_t timestamp, |
151 uint32_t width, | 151 uint32_t width, |
152 uint32_t height, | 152 uint32_t height, |
153 size_t size); | 153 size_t size); |
154 | 154 |
155 // Resets VDA. | 155 // Resets VDA. |
156 void ResetInternal(); | 156 void ResetInternal(); |
157 | 157 |
158 // Tells VDA that a picture buffer can be recycled. | 158 // Tells VDA that a picture buffer can be recycled. |
159 void ReusePictureBuffer(int64 picture_buffer_id, uint32 sync_point); | 159 void ReusePictureBuffer(int64 picture_buffer_id, |
| 160 scoped_ptr<gpu::MailboxHolder> mailbox_holder); |
160 | 161 |
161 void DestroyTextures(); | 162 void DestroyTextures(); |
162 void DestroyVDA(); | 163 void DestroyVDA(); |
163 | 164 |
164 // Gets a shared-memory segment of at least |min_size| bytes from | 165 // Gets a shared-memory segment of at least |min_size| bytes from |
165 // |available_shm_segments_|. Returns NULL if there is no buffer or the | 166 // |available_shm_segments_|. Returns NULL if there is no buffer or the |
166 // buffer is not big enough. | 167 // buffer is not big enough. |
167 scoped_ptr<SHMBuffer> GetSHM_Locked(size_t min_size); | 168 scoped_ptr<SHMBuffer> GetSHM_Locked(size_t min_size); |
168 | 169 |
169 // Returns a shared-memory segment to the available pool. | 170 // Returns a shared-memory segment to the available pool. |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 // Factory used to populate |weak_this_|. Must be destroyed, or invalidated, | 272 // Factory used to populate |weak_this_|. Must be destroyed, or invalidated, |
272 // on |vda_loop_proxy_|. | 273 // on |vda_loop_proxy_|. |
273 base::WeakPtrFactory<RTCVideoDecoder> weak_factory_; | 274 base::WeakPtrFactory<RTCVideoDecoder> weak_factory_; |
274 | 275 |
275 DISALLOW_COPY_AND_ASSIGN(RTCVideoDecoder); | 276 DISALLOW_COPY_AND_ASSIGN(RTCVideoDecoder); |
276 }; | 277 }; |
277 | 278 |
278 } // namespace content | 279 } // namespace content |
279 | 280 |
280 #endif // CONTENT_RENDERER_MEDIA_RTC_VIDEO_DECODER_H_ | 281 #endif // CONTENT_RENDERER_MEDIA_RTC_VIDEO_DECODER_H_ |
OLD | NEW |