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

Commit 9967a4d3 authored by Jiwen Cai's avatar Jiwen Cai Committed by Android (Google) Code Review
Browse files

Merge "SurfaceTexture: setConsumerIsProtected" into oc-dev

parents 7f43068a a3e1d7b4
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);