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

Unified Diff: chromecast/media/cma/backend/video_plane_fake_factory.cc

Issue 809173002: Chromecast: Add a way to notify video plane about resolution changes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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: chromecast/media/cma/backend/video_plane_fake_factory.cc
diff --git a/chromecast/media/cma/backend/video_plane_fake_factory.cc b/chromecast/media/cma/backend/video_plane_fake_factory.cc
index 234500915632f385d1dd624e5fb800dca2986877..6f48645e043c44fd8a858c1982dd020edb3faf2d 100644
--- a/chromecast/media/cma/backend/video_plane_fake_factory.cc
+++ b/chromecast/media/cma/backend/video_plane_fake_factory.cc
@@ -7,9 +7,9 @@
namespace chromecast {
namespace media {
-// Global accessor to the video plane.
-VideoPlane* GetVideoPlane() {
- return VideoPlaneFake::GetInstance();
+// static
+scoped_ptr<VideoPlane> VideoPlaneFactory::CreatePlatformVideoPlane() {
+ return scoped_ptr<VideoPlane>(new VideoPlaneFake());
}
} // namespace media

Powered by Google App Engine
This is Rietveld 408576698