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

Unified Diff: chromecast/media/base/video_plane_controller.h

Issue 1824723003: [chromecast] Pass media task runner to VideoPlaneController. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: fixed android build Created 4 years, 9 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 | « chromecast/graphics/cast_screen.cc ('k') | chromecast/media/base/video_plane_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/media/base/video_plane_controller.h
diff --git a/chromecast/media/base/video_plane_controller.h b/chromecast/media/base/video_plane_controller.h
index c14ae95504f93ee72d7b7b2c7874f34f2154d0ac..7b20b4869bd7c57e496e40ff4d1b70a4a6658f13 100644
--- a/chromecast/media/base/video_plane_controller.h
+++ b/chromecast/media/base/video_plane_controller.h
@@ -36,8 +36,9 @@ namespace media {
// All calls to public methods should be from the same thread.
class VideoPlaneController {
public:
- static VideoPlaneController* GetInstance();
-
+ explicit VideoPlaneController(
+ scoped_refptr<base::SingleThreadTaskRunner> media_task_runner);
+ ~VideoPlaneController();
// Sets the video plane geometry (forwards to VideoPlane::SetGeometry)
// in *graphics plane coordinates*.
// * This should be called on UI thread (hopping to media thread is handled
@@ -77,9 +78,6 @@ class VideoPlaneController {
class RateLimitedSetVideoPlaneGeometry;
friend struct base::DefaultSingletonTraits<VideoPlaneController>;
- VideoPlaneController();
- ~VideoPlaneController();
-
// Check if HaveDataForSetGeometry. If not, this method is a no-op. Otherwise
// it scales the display rect from graphics to device resolution coordinates.
// Then posts task to media thread for VideoPlane::SetGeometry.
« no previous file with comments | « chromecast/graphics/cast_screen.cc ('k') | chromecast/media/base/video_plane_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698