Loading libs/hwui/jni/BitmapFactory.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -688,7 +688,7 @@ static jobject nativeDecodeStream(JNIEnv* env, jobject clazz, jobject is, jbyteA static jobject nativeDecodeFileDescriptor(JNIEnv* env, jobject clazz, jobject fileDescriptor, jobject padding, jobject bitmapFactoryOptions, jlong inBitmapHandle, jlong colorSpaceHandle) { #ifndef __ANDROID__ // LayoutLib for Windows does not support F_DUPFD_CLOEXEC #ifdef _WIN32 // LayoutLib for Windows does not support F_DUPFD_CLOEXEC return nullObjectReturn("Not supported on Windows"); #else NPE_CHECK_RETURN_ZERO(env, fileDescriptor); Loading Loading
libs/hwui/jni/BitmapFactory.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -688,7 +688,7 @@ static jobject nativeDecodeStream(JNIEnv* env, jobject clazz, jobject is, jbyteA static jobject nativeDecodeFileDescriptor(JNIEnv* env, jobject clazz, jobject fileDescriptor, jobject padding, jobject bitmapFactoryOptions, jlong inBitmapHandle, jlong colorSpaceHandle) { #ifndef __ANDROID__ // LayoutLib for Windows does not support F_DUPFD_CLOEXEC #ifdef _WIN32 // LayoutLib for Windows does not support F_DUPFD_CLOEXEC return nullObjectReturn("Not supported on Windows"); #else NPE_CHECK_RETURN_ZERO(env, fileDescriptor); Loading