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 370039e50ef8d188f8957fdebef97f7a06ce5781..16d3d7cdde5e5300eb521c9727beaedda5c16048 100644 |
--- a/talk/app/webrtc/java/jni/native_handle_impl.h |
+++ b/talk/app/webrtc/java/jni/native_handle_impl.h |
@@ -31,6 +31,8 @@ |
#include <jni.h> |
+#include "webrtc/common_video/interface/video_frame_buffer.h" |
+ |
namespace webrtc_jni { |
// Wrapper for texture object. |
@@ -43,6 +45,20 @@ struct NativeHandleImpl { |
float sampling_matrix[16]; |
}; |
+class AndroidTextureBuffer : public webrtc::NativeHandleBuffer { |
+ public: |
+ AndroidTextureBuffer(int width, |
+ int height, |
+ const NativeHandleImpl& native_handle, |
+ const rtc::Callback0<void>& no_longer_used); |
+ ~AndroidTextureBuffer(); |
+ rtc::scoped_refptr<VideoFrameBuffer> NativeToI420Buffer() override; |
+ |
+ private: |
+ NativeHandleImpl native_handle_; |
+ rtc::Callback0<void> no_longer_used_cb_; |
+}; |
+ |
} // namespace webrtc_jni |
#endif // TALK_APP_WEBRTC_JAVA_JNI_NATIVE_HANDLE_IMPL_H_ |