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

Unified Diff: chromecast/renderer/media/video_plane_proxy.cc

Issue 814403002: [Chromecast] Add CmaMediaRendererFactory and IPC proxy components (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/renderer/media/video_plane_proxy.cc
diff --git a/chromecast/renderer/media/video_plane_proxy.cc b/chromecast/renderer/media/video_plane_proxy.cc
new file mode 100644
index 0000000000000000000000000000000000000000..788f135cd952b539e7787ebaa1f71f8ceec2c0f6
--- /dev/null
+++ b/chromecast/renderer/media/video_plane_proxy.cc
@@ -0,0 +1,27 @@
+// 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/renderer/media/video_plane_proxy.h"
+
+#include "chromecast/common/media/cma_messages.h"
+#include "chromecast/renderer/media/cma_message_filter_proxy.h"
+#include "ui/gfx/geometry/quad_f.h"
+
+namespace chromecast {
+namespace cma {
+
+void UpdateVideoSurface(int surface_id, const gfx::QuadF& quad) {
+ CmaMessageFilterProxy* filter = CmaMessageFilterProxy::Get();
+ if (!filter)
+ return;
+
+ filter->Send(scoped_ptr<IPC::Message>(
+ new CmaHostMsg_NotifyExternalSurface(
+ surface_id,
+ quad.p1(), quad.p2(), quad.p3(), quad.p4())));
+}
+
+} // namespace cma
+} // namespace chromecast
+

Powered by Google App Engine
This is Rietveld 408576698