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

Unified Diff: content/renderer/media/native_handle_impl.h

Issue 13890012: Integrate VDA with WebRTC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 8 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.h
diff --git a/content/renderer/media/native_handle_impl.h b/content/renderer/media/native_handle_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..84680c198a42ad9518b6e14cf4b98b93a620c46a
--- /dev/null
+++ b/content/renderer/media/native_handle_impl.h
@@ -0,0 +1,30 @@
+// 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.
+
+#ifndef CONTENT_RENDERER_MEDIA_NATIVE_HANDLE_IMPL_H_
+#define CONTENT_RENDERER_MEDIA_NATIVE_HANDLE_IMPL_H_
+
+#include "third_party/webrtc/common_video/interface/native_handle.h"
+
+namespace media {
+
+class VideoFrame;
+
+class NativeHandleImpl : public webrtc::NativeHandle {
+ public:
+ virtual void SetHandle(void *handle) {
Ami GONE FROM CHROMIUM 2013/04/26 00:42:05 nit: chromium style puts the * (and &) with the ty
wuchengli 2013/04/26 11:49:14 All done.
+ frame_ = (VideoFrame *)handle;
Ami GONE FROM CHROMIUM 2013/04/26 00:42:05 nit: chromium eschews C-style casts in favor of C+
wuchengli 2013/04/26 11:49:14 All done.
+ }
+
+ virtual void *GetHandle() {
+ return frame_.get();
+ }
+
+ private:
+ scoped_refptr<VideoFrame> frame_;
+};
+
+} // namespace media
+
+#endif // CONTENT_RENDERER_MEDIA_NATIVE_HANDLE_IMPL_H_

Powered by Google App Engine
This is Rietveld 408576698