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 <list> | 9 #include <list> |
10 #include <map> | 10 #include <map> |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 | 145 |
146 // Resets VDA. | 146 // Resets VDA. |
147 void ResetInternal(); | 147 void ResetInternal(); |
148 | 148 |
149 // Static method is to allow it to run even after RVD is deleted. | 149 // Static method is to allow it to run even after RVD is deleted. |
150 static void ReleaseMailbox( | 150 static void ReleaseMailbox( |
151 base::WeakPtr<RTCVideoDecoder> decoder, | 151 base::WeakPtr<RTCVideoDecoder> decoder, |
152 const scoped_refptr<media::GpuVideoAcceleratorFactories>& factories, | 152 const scoped_refptr<media::GpuVideoAcceleratorFactories>& factories, |
153 int64 picture_buffer_id, | 153 int64 picture_buffer_id, |
154 uint32 texture_id, | 154 uint32 texture_id, |
155 const std::vector<uint32>& release_sync_points); | 155 uint32 release_sync_point); |
156 // Tells VDA that a picture buffer can be recycled. | 156 // Tells VDA that a picture buffer can be recycled. |
157 void ReusePictureBuffer(int64 picture_buffer_id); | 157 void ReusePictureBuffer(int64 picture_buffer_id); |
158 | 158 |
159 // Create |vda_| on |vda_loop_proxy_|. | 159 // Create |vda_| on |vda_loop_proxy_|. |
160 void CreateVDA(media::VideoCodecProfile profile, base::WaitableEvent* waiter); | 160 void CreateVDA(media::VideoCodecProfile profile, base::WaitableEvent* waiter); |
161 | 161 |
162 void DestroyTextures(); | 162 void DestroyTextures(); |
163 void DestroyVDA(); | 163 void DestroyVDA(); |
164 | 164 |
165 // 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 |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 // Must be destroyed, or invalidated, on |vda_loop_proxy_| | 268 // Must be destroyed, or invalidated, on |vda_loop_proxy_| |
269 // NOTE: Weak pointers must be invalidated before all other member variables. | 269 // NOTE: Weak pointers must be invalidated before all other member variables. |
270 base::WeakPtrFactory<RTCVideoDecoder> weak_factory_; | 270 base::WeakPtrFactory<RTCVideoDecoder> weak_factory_; |
271 | 271 |
272 DISALLOW_COPY_AND_ASSIGN(RTCVideoDecoder); | 272 DISALLOW_COPY_AND_ASSIGN(RTCVideoDecoder); |
273 }; | 273 }; |
274 | 274 |
275 } // namespace content | 275 } // namespace content |
276 | 276 |
277 #endif // CONTENT_RENDERER_MEDIA_RTC_VIDEO_DECODER_H_ | 277 #endif // CONTENT_RENDERER_MEDIA_RTC_VIDEO_DECODER_H_ |
OLD | NEW |