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 f70ae3b97cb2838120e0cf1b20ef86584b7f7dbf..560a84255cf2540b79c2ca24e74911a7d4aff4a8 100644 |
--- a/webrtc/sdk/android/src/jni/native_handle_impl.h |
+++ b/webrtc/sdk/android/src/jni/native_handle_impl.h |
@@ -106,16 +106,15 @@ class AndroidVideoBuffer : public AndroidVideoFrameBuffer { |
AndroidVideoBuffer(JNIEnv* jni, |
jmethodID j_retain_id, |
jmethodID j_release_id, |
- int width, |
- int height, |
- const Matrix& matrix, |
+ jmethodID j_get_width_id, |
+ jmethodID j_get_height_id, |
jobject j_video_frame_buffer); |
~AndroidVideoBuffer() override; |
jobject video_frame_buffer() const; |
// Returns an instance of VideoRenderer.I420Frame (deprecated) |
- jobject ToJavaI420Frame(JNIEnv* jni, int width, int height, int rotation); |
+ jobject ToJavaI420Frame(JNIEnv* jni, int rotation); |
private: |
Type type() const override; |
@@ -127,9 +126,8 @@ class AndroidVideoBuffer : public AndroidVideoFrameBuffer { |
AndroidType android_type() override { return AndroidType::kJavaBuffer; } |
const jmethodID j_release_id_; |
- const int width_; |
- const int height_; |
- const Matrix matrix_; |
+ const jmethodID j_get_width_id_; |
+ const jmethodID j_get_height_id_; |
// Holds a VideoFrame.Buffer. |
ScopedGlobalRef<jobject> j_video_frame_buffer_; |
}; |
@@ -143,23 +141,19 @@ class AndroidVideoBufferFactory { |
uint32_t timestamp_rtp) const; |
rtc::scoped_refptr<AndroidVideoBuffer> CreateBuffer( |
- int width, |
- int height, |
- const Matrix& matrix, |
jobject j_video_frame_buffer) const; |
private: |
ScopedGlobalRef<jclass> j_video_frame_class_; |
jmethodID j_get_buffer_id_; |
- jmethodID j_get_width_id_; |
- jmethodID j_get_height_id_; |
jmethodID j_get_rotation_id_; |
- jmethodID j_get_transform_matrix_id_; |
jmethodID j_get_timestamp_ns_id_; |
ScopedGlobalRef<jclass> j_video_frame_buffer_class_; |
jmethodID j_retain_id_; |
jmethodID j_release_id_; |
+ jmethodID j_get_width_id_; |
+ jmethodID j_get_height_id_; |
}; |
} // namespace webrtc_jni |