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

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

Issue 802833002: Chromecast: media interfaces for hardware-backed video plane. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update comment 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
« no previous file with comments | « chromecast/media/cma/backend/video_plane.cc ('k') | chromecast/media/cma/backend/video_plane_fake.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
new file mode 100644
index 0000000000000000000000000000000000000000..f809015673d1d8e9debd2fcd0af2a06a216bdd13
--- /dev/null
+++ b/chromecast/media/cma/backend/video_plane_fake.h
@@ -0,0 +1,37 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROMECAST_MEDIA_CMA_BACKEND_VIDEO_PLANE_FAKE_H_
+#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 {
+namespace media {
+
+class VideoPlaneFake : public VideoPlane {
+ public:
+ static VideoPlaneFake* GetInstance();
+
+ // VideoPlane implementation.
+ gfx::Size GetVideoPlaneResolution() override;
+ void SetGeometry(const gfx::QuadF& quad,
+ CoordinateType coordinate_type) override;
+
+ private:
+ friend struct DefaultSingletonTraits<VideoPlaneFake>;
+ friend class Singleton<VideoPlaneFake>;
+
+ VideoPlaneFake();
+ virtual ~VideoPlaneFake();
+
+ DISALLOW_COPY_AND_ASSIGN(VideoPlaneFake);
+};
+
+} // namespace media
+} // namespace chromecast
+
+#endif // CHROMECAST_MEDIA_CMA_BACKEND_VIDEO_PLANE_FAKE_H_
« no previous file with comments | « chromecast/media/cma/backend/video_plane.cc ('k') | chromecast/media/cma/backend/video_plane_fake.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698