Chromium Code Reviews| 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_ |