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

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

Issue 1417533006: Unit test for WebMediaPlayerMS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Unittest 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
Index: content/renderer/media/webmediaplayer_ms_compositor.h
diff --git a/content/renderer/media/webmediaplayer_ms_compositor.h b/content/renderer/media/webmediaplayer_ms_compositor.h
index 23a4209fc119ba9287bc88bb276a5e7ca2afcd25..45d2941738beee6fd1d3f7876c1a563e6c62091a 100644
--- a/content/renderer/media/webmediaplayer_ms_compositor.h
+++ b/content/renderer/media/webmediaplayer_ms_compositor.h
@@ -43,10 +43,17 @@ namespace content {
// frame, and submit it whenever asked by the compositor.
class WebMediaPlayerMSCompositor : public cc::VideoFrameProvider {
public:
- // This |url| represents the media stream we are rendering.
+ // This |url| represents the media stream we are rendering. |url| is used to
+ // determine whether we enable algorithm or not by looking up
+ // MediaStreamDescriptor.
mcasas 2015/10/21 19:54:02 Incorrect, |url| is used to find the MediaStream W
qiangchen 2015/10/22 17:22:58 It is decided here. And the main usage of |url| is
WebMediaPlayerMSCompositor(
const scoped_refptr<base::SingleThreadTaskRunner>& compositor_task_runner,
const blink::WebURL& url);
+
+ WebMediaPlayerMSCompositor(
+ const scoped_refptr<base::SingleThreadTaskRunner>& compositor_task_runner,
+ const bool algorithm_enabled);
mcasas 2015/10/21 19:54:02 I think you could get rid of this ctor by: a) reg
qiangchen 2015/10/22 17:22:58 Plan a) sounds better, but here is some difficulty
+
~WebMediaPlayerMSCompositor() override;
void EnqueueFrame(const scoped_refptr<media::VideoFrame>& frame);

Powered by Google App Engine
This is Rietveld 408576698