Loading core/jni/android/graphics/BitmapFactory.cpp +1 −2 Original line number Original line Diff line number Diff line Loading @@ -633,8 +633,7 @@ static jobject nativeDecodeFileDescriptor(JNIEnv* env, jobject clazz, jobject fi return nullObjectReturn("Could not open file"); return nullObjectReturn("Could not open file"); } } std::unique_ptr<SkFILEStream> fileStream(new SkFILEStream(file, std::unique_ptr<SkFILEStream> fileStream(new SkFILEStream(file)); SkFILEStream::kCallerPasses_Ownership)); // If there is no offset for the file descriptor, we use SkFILEStream directly. // If there is no offset for the file descriptor, we use SkFILEStream directly. if (::lseek(descriptor, 0, SEEK_CUR) == 0) { if (::lseek(descriptor, 0, SEEK_CUR) == 0) { Loading Loading
core/jni/android/graphics/BitmapFactory.cpp +1 −2 Original line number Original line Diff line number Diff line Loading @@ -633,8 +633,7 @@ static jobject nativeDecodeFileDescriptor(JNIEnv* env, jobject clazz, jobject fi return nullObjectReturn("Could not open file"); return nullObjectReturn("Could not open file"); } } std::unique_ptr<SkFILEStream> fileStream(new SkFILEStream(file, std::unique_ptr<SkFILEStream> fileStream(new SkFILEStream(file)); SkFILEStream::kCallerPasses_Ownership)); // If there is no offset for the file descriptor, we use SkFILEStream directly. // If there is no offset for the file descriptor, we use SkFILEStream directly. if (::lseek(descriptor, 0, SEEK_CUR) == 0) { if (::lseek(descriptor, 0, SEEK_CUR) == 0) { Loading