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

Unified Diff: chromecast/media/cma/backend/video_plane_fake.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: Simplify videoplane factory, cr feedback 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.cc
diff --git a/chromecast/media/cma/backend/video_plane_fake.cc b/chromecast/media/cma/backend/video_plane_fake.cc
index a129d8deb25049c9b8e410dba57ee482a3668bc3..73fa39ef5b60ce2af428b4ad6a444d3af2ae8b04 100644
--- a/chromecast/media/cma/backend/video_plane_fake.cc
+++ b/chromecast/media/cma/backend/video_plane_fake.cc
@@ -5,25 +5,19 @@
#include "chromecast/media/cma/backend/video_plane_fake.h"
#include "base/logging.h"
-#include "base/memory/singleton.h"
#include "ui/gfx/geometry/quad_f.h"
#include "ui/gfx/geometry/size.h"
namespace chromecast {
namespace media {
-// static
-VideoPlaneFake* VideoPlaneFake::GetInstance() {
- return Singleton<VideoPlaneFake>::get();
-}
-
VideoPlaneFake::VideoPlaneFake() {
}
VideoPlaneFake::~VideoPlaneFake() {
}
-gfx::Size VideoPlaneFake::GetVideoPlaneResolution() {
+gfx::Size VideoPlaneFake::GetScreenResolution() {
return gfx::Size(1920, 1080);
}
@@ -32,5 +26,8 @@ void VideoPlaneFake::SetGeometry(const gfx::QuadF& quad,
// Nothing to be done.
}
+void VideoPlaneFake::OnScreenResolutionChanged(const gfx::Size& screen_res) {
+}
+
} // namespace media
} // namespace chromecast

Powered by Google App Engine
This is Rietveld 408576698