Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 99673e1f authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Stop explicitly using kCallerPasses_Ownership"

parents 5fec4418 dd3c06ce
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -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) {