| Index: talk/app/webrtc/java/jni/native_handle_impl.h
|
| diff --git a/talk/app/webrtc/java/jni/native_handle_impl.h b/talk/app/webrtc/java/jni/native_handle_impl.h
|
| index 8c8769611870fe1c0fed315f7aa3140310ba42de..cdb72ff4d59f3eead9a52b3687e92110f6060951 100644
|
| --- a/talk/app/webrtc/java/jni/native_handle_impl.h
|
| +++ b/talk/app/webrtc/java/jni/native_handle_impl.h
|
| @@ -29,6 +29,9 @@
|
| #ifndef TALK_APP_WEBRTC_JAVA_JNI_NATIVE_HANDLE_IMPL_H_
|
| #define TALK_APP_WEBRTC_JAVA_JNI_NATIVE_HANDLE_IMPL_H_
|
|
|
| +#include "webrtc/base/checks.h"
|
| +#include "webrtc/common_video/interface/video_frame_buffer.h"
|
| +
|
| namespace webrtc_jni {
|
|
|
| // Wrapper for texture object.
|
| @@ -52,6 +55,23 @@ class NativeHandleImpl {
|
| int32_t texture_id_;
|
| };
|
|
|
| +class JniNativeHandleBuffer : public webrtc::NativeHandleBuffer {
|
| + public:
|
| + JniNativeHandleBuffer(void* native_handle, int width, int height)
|
| + : NativeHandleBuffer(native_handle, width, height) {}
|
| +
|
| + // TODO(pbos): Override destructor to release native handle, at the moment the
|
| + // native handle is not released based on refcount.
|
| +
|
| + private:
|
| + rtc::scoped_refptr<VideoFrameBuffer> NativeToI420Buffer() override {
|
| + // TODO(pbos): Implement before using this in the encoder pipeline (or
|
| + // remove the CHECK() in VideoCapture).
|
| + RTC_NOTREACHED();
|
| + return nullptr;
|
| + }
|
| +};
|
| +
|
| } // namespace webrtc_jni
|
|
|
| #endif // TALK_APP_WEBRTC_JAVA_JNI_NATIVE_HANDLE_IMPL_H_
|
|
|