add java API for Texture::Builder::import()

deprecate Stream::stream(intptr_t).

This method was needed for ARCore back in the days, but there is now a
zero-copy way to achieve the same thing. This API shouldn't be used anymore.
This commit is contained in:
Mathias Agopian
2021-05-14 13:29:46 -07:00
committed by Mathias Agopian
parent afbd6e6606
commit c1347e55cb
7 changed files with 36 additions and 1 deletions

View File

@@ -102,7 +102,9 @@ extern "C" JNIEXPORT void JNICALL
Java_com_google_android_filament_Stream_nBuilderStream(JNIEnv*, jclass,
jlong nativeStreamBuilder, jlong externalTextureId) {
StreamBuilder* builder = (StreamBuilder*) nativeStreamBuilder;
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
builder->builder()->stream(externalTextureId);
#pragma clang diagnostic pop
}
extern "C" JNIEXPORT void JNICALL