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 89efa54c41b693c0f7440a2a7a874de76bdf7331..a9b27e34b41caefef70d4ddd8ae16b6e1605dcf9 100644 |
--- a/content/renderer/media/renderer_gpu_video_decoder_factories.h |
+++ b/content/renderer/media/renderer_gpu_video_decoder_factories.h |
@@ -32,12 +32,12 @@ class WaitableEvent; |
class CONTENT_EXPORT RendererGpuVideoDecoderFactories |
: public media::GpuVideoDecoder::Factories { |
public: |
- // Takes a ref on |gpu_channel_host| and tests |context| for NULL before each |
+ // Takes a ref on |gpu_channel_host| and tests |context| for loss before each |
// use. |
RendererGpuVideoDecoderFactories( |
GpuChannelHost* gpu_channel_host, |
const scoped_refptr<base::MessageLoopProxy>& message_loop, |
- const base::WeakPtr<WebGraphicsContext3DCommandBufferImpl>& wgc3dcbi); |
+ WebGraphicsContext3DCommandBufferImpl* wgc3dcbi); |
virtual media::VideoDecodeAccelerator* CreateVideoDecodeAccelerator( |
media::VideoCodecProfile profile, |
@@ -58,7 +58,8 @@ class CONTENT_EXPORT RendererGpuVideoDecoderFactories |
private: |
// Helper for the constructor to acquire the ContentGLContext on the |
// compositor thread (when it is enabled). |
- void AsyncGetContext(base::WaitableEvent* waiter); |
+ void AsyncGetContext(WebGraphicsContext3DCommandBufferImpl* context, |
+ base::WaitableEvent* waiter); |
// Async versions of the public methods. They use output parameters instead |
// of return values and each takes a WaitableEvent* param to signal completion |