| Index: content/renderer/media/gpu/rtc_video_decoder.h
|
| diff --git a/content/renderer/media/gpu/rtc_video_decoder.h b/content/renderer/media/gpu/rtc_video_decoder.h
|
| index 274f6dfb6f6e77fda06fbd2afc7191e79ff2a4f0..d77220f5e4b6aa6d05bb681c86e757f6090faa2d 100644
|
| --- a/content/renderer/media/gpu/rtc_video_decoder.h
|
| +++ b/content/renderer/media/gpu/rtc_video_decoder.h
|
| @@ -43,11 +43,11 @@ struct SyncToken;
|
| namespace content {
|
|
|
| // This class uses hardware accelerated video decoder to decode video for
|
| -// WebRTC. |vda_message_loop_| is the message loop proxy of the media thread,
|
| -// which VDA::Client methods run on. webrtc::VideoDecoder methods run on WebRTC
|
| -// DecodingThread or Chrome_libJingle_WorkerThread, which are trampolined to
|
| -// |vda_message_loop_|. Decode() is non-blocking and queues the buffers. Decoded
|
| -// frames are delivered to WebRTC on |vda_message_loop_|.
|
| +// WebRTC. Lives on the media thread, where VDA::Client methods run on.
|
| +// webrtc::VideoDecoder methods run on WebRTC DecodingThread or
|
| +// Chrome_libJingle_WorkerThread, which are trampolined to the media thread.
|
| +// Decode() is non-blocking and queues the buffers. Decoded frames are
|
| +// delivered to WebRTC on the media task runner.
|
| class CONTENT_EXPORT RTCVideoDecoder
|
| : NON_EXPORTED_BASE(public webrtc::VideoDecoder),
|
| public media::VideoDecodeAccelerator::Client {
|
| @@ -163,7 +163,7 @@ class CONTENT_EXPORT RTCVideoDecoder
|
| // Tells VDA that a picture buffer can be recycled.
|
| void ReusePictureBuffer(int64_t picture_buffer_id);
|
|
|
| - // Creates |vda_| on |vda_loop_proxy_|.
|
| + // Creates |vda_| on the media thread.
|
| void CreateVDA(media::VideoCodecProfile profile, base::WaitableEvent* waiter);
|
|
|
| void DestroyTextures();
|
| @@ -294,7 +294,7 @@ class CONTENT_EXPORT RTCVideoDecoder
|
| gfx::Size min_resolution_;
|
| gfx::Size max_resolution_;
|
|
|
| - // Must be destroyed, or invalidated, on |vda_loop_proxy_|
|
| + // Must be destroyed, or invalidated, on the media thread.
|
| // NOTE: Weak pointers must be invalidated before all other member variables.
|
| base::WeakPtrFactory<RTCVideoDecoder> weak_factory_;
|
|
|
|
|