Chromium Code Reviews| Index: content/renderer/media/renderer_gpu_video_decoder_factories.h |
| diff --git a/content/renderer/media/renderer_gpu_video_decoder_factories.h b/content/renderer/media/renderer_gpu_video_decoder_factories.h |
| index e05dd9af9ff78f0e9f02d9d6f22efbf014637acd..1e991bc971b709101f77a40904329041c15d4db7 100644 |
| --- a/content/renderer/media/renderer_gpu_video_decoder_factories.h |
| +++ b/content/renderer/media/renderer_gpu_video_decoder_factories.h |
| @@ -31,9 +31,8 @@ class WebGraphicsContext3DCommandBufferImpl; |
| // |
| // The public methods of the class can be called from any thread, and are |
| // internally trampolined to the appropriate thread. GPU/GL-related calls go to |
| -// the constructor-argument loop (mostly that's the compositor thread, or the |
| -// renderer thread if threaded compositing is disabled), and shmem-related calls |
| -// go to the render thread. |
| +// the constructor-argument loop, and shmem-related calls go to the render |
| +// thread. |
|
Ami GONE FROM CHROMIUM
2013/06/11 23:48:05
I mourn the loss of the elided bits (as I've had t
wuchengli
2013/06/13 10:28:07
Done.
|
| class CONTENT_EXPORT RendererGpuVideoDecoderFactories |
| : public media::GpuVideoDecoder::Factories { |
| public: |
| @@ -61,11 +60,19 @@ class CONTENT_EXPORT RendererGpuVideoDecoderFactories |
| virtual void Abort() OVERRIDE; |
| virtual bool IsAborted() OVERRIDE; |
| + // Makes a copy of |this|. |
|
Ami GONE FROM CHROMIUM
2013/06/11 23:48:05
nit: s/Copy/Clone/ ?
("copy" connotes subordinat
wuchengli
2013/06/13 10:28:07
Done.
|
| + virtual RendererGpuVideoDecoderFactories* Copy(); |
|
Ami GONE FROM CHROMIUM
2013/06/11 23:48:05
RGVDF is refcounted so returning a raw pointer to
Ami GONE FROM CHROMIUM
2013/06/11 23:48:05
Drop "virtual".
wuchengli
2013/06/13 10:28:07
Done.
wuchengli
2013/06/13 10:28:07
Done.
|
| + |
| protected: |
| friend class base::RefCountedThreadSafe<RendererGpuVideoDecoderFactories>; |
| virtual ~RendererGpuVideoDecoderFactories(); |
| private: |
| + RendererGpuVideoDecoderFactories( |
|
Ami GONE FROM CHROMIUM
2013/06/11 23:48:05
Since this is only called by Copy, which is a memb
wuchengli
2013/06/13 10:28:07
Done.
|
| + scoped_refptr<base::MessageLoopProxy> message_loop, |
| + scoped_refptr<GpuChannelHost> gpu_channel_host, |
| + base::WeakPtr<WebGraphicsContext3DCommandBufferImpl> context); |
| + |
| // Helper for the constructor to acquire the ContentGLContext on the |
| // compositor thread (when it is enabled). |
| void AsyncGetContext(WebGraphicsContext3DCommandBufferImpl* context); |