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

Commit b87bf3fe authored by John Reck's avatar John Reck Committed by Android (Google) Code Review
Browse files

Merge "Adjust initCheck to compare against OK instead"

parents 7cb84c79 56eb27e0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -85,7 +85,7 @@ static jlong android_hardware_HardwareBuffer_create(JNIEnv* env, jobject clazz,
    sp<GraphicBuffer> buffer = new GraphicBuffer(width, height, pixelFormat, layers,
            grallocUsage, std::string("HardwareBuffer pid [") + std::to_string(getpid()) +"]");
    status_t error = buffer->initCheck();
    if (error < 0) {
    if (error != OK) {
        if (kDebugGraphicBuffer) {
            ALOGW("createGraphicBuffer() failed in HardwareBuffer.create()");
        }