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

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

Issue 13890012: Integrate VDA with WebRTC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address review comments Created 7 years, 6 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 e05dd9af9ff78f0e9f02d9d6f22efbf014637acd..9f31586641db5772288c9b04fa2f3e979ec9a552 100644
--- a/content/renderer/media/renderer_gpu_video_decoder_factories.h
+++ b/content/renderer/media/renderer_gpu_video_decoder_factories.h
@@ -31,9 +31,10 @@ 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. Typically this is the compositor thread,
+// unless threaded-compositing is disabled, when it'll be the renderer thread,
+// or a special-purpose thread e.g. for WebRTC. shmem-related calls go to the
+// render thread.
class CONTENT_EXPORT RendererGpuVideoDecoderFactories
: public media::GpuVideoDecoder::Factories {
public:
@@ -61,6 +62,9 @@ class CONTENT_EXPORT RendererGpuVideoDecoderFactories
virtual void Abort() OVERRIDE;
virtual bool IsAborted() OVERRIDE;
+ // Makes a copy of |this|.
+ scoped_refptr<RendererGpuVideoDecoderFactories> Clone();
+
protected:
friend class base::RefCountedThreadSafe<RendererGpuVideoDecoderFactories>;
virtual ~RendererGpuVideoDecoderFactories();

Powered by Google App Engine
This is Rietveld 408576698