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

Commit 941eae0a authored by Jiwen Cai's avatar Jiwen Cai Committed by android-build-merger
Browse files

Merge "SurfaceTexture: setConsumerIsProtected" into oc-dev

am: 9967a4d3

Change-Id: If2ec26782f82e0f22deb7d952b79436e30a91867
parents 05713dc1 9967a4d3
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -286,9 +286,7 @@ static void SurfaceTexture_init(JNIEnv* env, jobject thiz, jboolean isDetached,
            createProcessUniqueId()));

    // If the current context is protected, inform the producer.
    if (isProtectedContext()) {
        consumer->setConsumerUsageBits(GRALLOC_USAGE_PROTECTED);
    }
    consumer->setConsumerIsProtected(isProtectedContext());

    SurfaceTexture_setSurfaceTexture(env, thiz, surfaceTexture);
    SurfaceTexture_setProducer(env, thiz, producer);