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

Unified Diff: chromecast/media/cma/backend/video_plane_fake.h

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.h
diff --git a/chromecast/media/cma/backend/video_plane_fake.h b/chromecast/media/cma/backend/video_plane_fake.h
index f809015673d1d8e9debd2fcd0af2a06a216bdd13..1cfe38c2991e5702fb5229401a11c02754992e82 100644
--- a/chromecast/media/cma/backend/video_plane_fake.h
+++ b/chromecast/media/cma/backend/video_plane_fake.h
@@ -6,7 +6,6 @@
#define CHROMECAST_MEDIA_CMA_BACKEND_VIDEO_PLANE_FAKE_H_
#include "base/macros.h"
-#include "base/memory/singleton.h"
#include "chromecast/media/cma/backend/video_plane.h"
namespace chromecast {
@@ -14,19 +13,14 @@ namespace media {
class VideoPlaneFake : public VideoPlane {
public:
- static VideoPlaneFake* GetInstance();
+ VideoPlaneFake();
+ virtual ~VideoPlaneFake();
// VideoPlane implementation.
- gfx::Size GetVideoPlaneResolution() override;
+ gfx::Size GetScreenResolution() override;
void SetGeometry(const gfx::QuadF& quad,
CoordinateType coordinate_type) override;
-
- private:
- friend struct DefaultSingletonTraits<VideoPlaneFake>;
- friend class Singleton<VideoPlaneFake>;
-
- VideoPlaneFake();
- virtual ~VideoPlaneFake();
+ void OnScreenResolutionChanged(const gfx::Size& screen_res) override;
DISALLOW_COPY_AND_ASSIGN(VideoPlaneFake);
};

Powered by Google App Engine
This is Rietveld 408576698