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: content/renderer/media/native_handle_impl.cc

Issue 19041006: Send video frames backed by textures to WebRTC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove SetHandle and use ctor instead Created 7 years, 5 months 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: content/renderer/media/native_handle_impl.cc
diff --git a/content/renderer/media/native_handle_impl.cc b/content/renderer/media/native_handle_impl.cc
new file mode 100644
index 0000000000000000000000000000000000000000..0a7f128b8806736a2593be8a3f2bf8355b129866
--- /dev/null
+++ b/content/renderer/media/native_handle_impl.cc
@@ -0,0 +1,14 @@
+// Copyright (c) 2013 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 "content/renderer/media/native_handle_impl.h"
+
+namespace content {
+
+NativeHandleImpl::NativeHandleImpl(scoped_refptr<media::VideoFrame> frame)
+ : frame_(frame) {}
+
+void* NativeHandleImpl::GetHandle() { return frame_.get(); }
+
+} // namespace content

Powered by Google App Engine
This is Rietveld 408576698