Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1015)

Unified Diff: content/renderer/media/renderer_gpu_video_decoder_factories.h

Issue 10832264: Fix lifecycle-vs-threads of GpuVDAContext3D. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: piman CR response Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 367dcb9faf0c10ca9985540986cb23c5ced9df38..7385a10f67de1c5b6aadb28aab6a22882cc7ea88 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,
MessageLoop* 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
« no previous file with comments | « no previous file | content/renderer/media/renderer_gpu_video_decoder_factories.cc » ('j') | content/renderer/render_thread_impl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698