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

Unified Diff: content/public/renderer/media_stream_renderer_factory.h

Issue 1407703003: Reland: Use GpuMemoryBufferVideoFramePool for WebMediaPlayerMS and MediaStreamVideoRendererSink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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
« no previous file with comments | « no previous file | content/renderer/media/media_stream_renderer_factory_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/renderer/media_stream_renderer_factory.h
diff --git a/content/public/renderer/media_stream_renderer_factory.h b/content/public/renderer/media_stream_renderer_factory.h
index 2b8e39197e49d81f96ebe4f614832b1c1d89b521..72c0aa2f583dedaea479e08f85b7a1e841ac040c 100644
--- a/content/public/renderer/media_stream_renderer_factory.h
+++ b/content/public/renderer/media_stream_renderer_factory.h
@@ -14,6 +14,15 @@
#include "url/gurl.h"
#include "url/origin.h"
+namespace base {
+class SingleThreadTaskRunner;
+class TaskRunner;
+} // namespace base
+
+namespace media {
+class GpuVideoAcceleratorFactories;
+} // namespace media
+
namespace content {
// MediaStreamRendererFactory is used by WebMediaPlayerMS to create audio and
@@ -27,7 +36,11 @@ class MediaStreamRendererFactory {
virtual scoped_refptr<VideoFrameProvider> GetVideoFrameProvider(
const GURL& url,
const base::Closure& error_cb,
- const VideoFrameProvider::RepaintCB& repaint_cb) = 0;
+ const VideoFrameProvider::RepaintCB& repaint_cb,
+ const scoped_refptr<base::SingleThreadTaskRunner>& media_task_runner,
+ const scoped_refptr<base::TaskRunner>& worker_task_runner,
+ const scoped_refptr<media::GpuVideoAcceleratorFactories>&
+ gpu_factories) = 0;
virtual scoped_refptr<MediaStreamAudioRenderer> GetAudioRenderer(
const GURL& url,
« no previous file with comments | « no previous file | content/renderer/media/media_stream_renderer_factory_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698