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

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

Issue 2529263004: Move passing of WebRTC rendering frames to IO thread (Closed)
Patch Set: Created 4 years 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.h
diff --git a/content/renderer/media/webmediaplayer_ms.h b/content/renderer/media/webmediaplayer_ms.h
index 7076f26896241ba47a30797e66078562683c158e..b4905632ca8850d997d2eb17931d0de962ca6b68 100644
--- a/content/renderer/media/webmediaplayer_ms.h
+++ b/content/renderer/media/webmediaplayer_ms.h
@@ -220,9 +220,7 @@ class CONTENT_EXPORT WebMediaPlayerMS
// Used for DCHECKs to ensure methods calls executed in the correct thread.
base::ThreadChecker thread_checker_;
- // WebMediaPlayerMS owns |compositor_| and destroys it on
- // |compositor_task_runner_|.
- std::unique_ptr<WebMediaPlayerMSCompositor> compositor_;
+ scoped_refptr<WebMediaPlayerMSCompositor> compositor_;
DaleCurtis 2016/12/03 01:17:54 Can we avoid this?
emircan 2016/12/03 01:42:13 I can think of a way of avoiding this, but I menti
DaleCurtis 2016/12/06 01:00:42 Is this true? Or would it be sufficient to just ge
const scoped_refptr<base::SingleThreadTaskRunner> compositor_task_runner_;

Powered by Google App Engine
This is Rietveld 408576698