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

Commit edae7a8e authored by Android Build Merger (Role)'s avatar Android Build Merger (Role) Committed by Android (Google) Code Review
Browse files

Merge "Merge "SurfaceTexture: setConsumerIsProtected" into oc-dev am:...

Merge "Merge "SurfaceTexture: setConsumerIsProtected" into oc-dev am: 9967a4d3" into oc-dev-plus-aosp
parents b1d85683 941eae0a
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);