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

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

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
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
new file mode 100644
index 0000000000000000000000000000000000000000..a129d8deb25049c9b8e410dba57ee482a3668bc3
--- /dev/null
+++ b/chromecast/media/cma/backend/video_plane_fake.cc
@@ -0,0 +1,36 @@
+// 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.
+
+#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() {
+ return gfx::Size(1920, 1080);
+}
+
+void VideoPlaneFake::SetGeometry(const gfx::QuadF& quad,
+ CoordinateType coordinate_type) {
+ // Nothing to be done.
+}
+
+} // namespace media
+} // namespace chromecast
« no previous file with comments | « chromecast/media/cma/backend/video_plane_fake.h ('k') | chromecast/media/cma/backend/video_plane_fake_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698