Index: talk/app/webrtc/java/jni/native_handle_impl.cc |
diff --git a/talk/app/webrtc/java/jni/native_handle_impl.cc b/talk/app/webrtc/java/jni/native_handle_impl.cc |
index 98af4d8b7de98f698f363aa33329ce95e1d37399..ed9ad8e8918ad1d6e5adb21c42fbb30c82960802 100644 |
--- a/talk/app/webrtc/java/jni/native_handle_impl.cc |
+++ b/talk/app/webrtc/java/jni/native_handle_impl.cc |
@@ -44,4 +44,24 @@ NativeHandleImpl::NativeHandleImpl(JNIEnv* jni, |
jni->ReleaseFloatArrayElements(j_transform_matrix, transform_matrix_ptr, 0); |
} |
+AndroidTextureBuffer::AndroidTextureBuffer( |
+ int width, |
+ int height, |
+ const NativeHandleImpl& native_handle, |
+ const rtc::Callback0<void>& no_longer_used) |
+ : webrtc::NativeHandleBuffer(&native_handle_, width, height), |
+ native_handle_(native_handle), |
+ no_longer_used_cb_(no_longer_used) {} |
+ |
+AndroidTextureBuffer::~AndroidTextureBuffer() { |
+ no_longer_used_cb_(); |
+} |
+ |
+rtc::scoped_refptr<webrtc::VideoFrameBuffer> |
+AndroidTextureBuffer::NativeToI420Buffer() { |
+ RTC_NOTREACHED() |
+ << "AndroidTextureBuffer::NativeToI420Buffer not implemented."; |
+ return nullptr; |
+} |
+ |
} // namespace webrtc_jni |