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..6c463e0e9a63c004e9d1998b349252d6e5fc2e89 |
--- /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 GetScreenResolution() 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_ |