Index: webrtc/sdk/android/src/jni/native_handle_impl.h |
diff --git a/webrtc/sdk/android/src/jni/native_handle_impl.h b/webrtc/sdk/android/src/jni/native_handle_impl.h |
index 65da9f7f0ee0500596fc21564c60733785e02259..834441a7c685f33b675ff4288c629ab0b9f42c02 100644 |
--- a/webrtc/sdk/android/src/jni/native_handle_impl.h |
+++ b/webrtc/sdk/android/src/jni/native_handle_impl.h |
@@ -156,6 +156,17 @@ class AndroidVideoBufferFactory { |
jmethodID j_get_height_id_; |
}; |
+class JavaVideoFrameFactory { |
+ public: |
+ JavaVideoFrameFactory(JNIEnv* jni); |
+ |
+ jobject ToJavaFrame(JNIEnv* jni, const webrtc::VideoFrame& frame) const; |
+ |
+ private: |
+ ScopedGlobalRef<jclass> j_video_frame_class_; |
+ jmethodID j_video_frame_constructor_id_; |
+}; |
+ |
} // namespace webrtc_jni |
#endif // WEBRTC_SDK_ANDROID_SRC_JNI_NATIVE_HANDLE_IMPL_H_ |