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

Commit ecd161de authored by Ian Elliott's avatar Ian Elliott
Browse files

Plumb 2 EGL surface attributes to ANGLE

The eglSurfaceAttribImpl locally handles the following attributes.
However, these need to be passed to ANGLE, for coordination with the
Vulkan swapchain.

Test: Manual testing with partner
Bug: 234749888
Change-Id: I5759bf0de52aa9053d11e3ca1ec810082d564863
parent 8005f7ea
Loading
Loading
Loading
Loading
+10 −2
Original line number Diff line number Diff line
@@ -1448,7 +1448,11 @@ EGLBoolean eglSurfaceAttribImpl(EGLDisplay dpy, EGLSurface surface, EGLint attri
            setError(EGL_BAD_SURFACE, EGL_FALSE);
        }
        int err = native_window_set_auto_refresh(s->getNativeWindow(), value != 0);
        return (err == 0) ? EGL_TRUE : setError(EGL_BAD_SURFACE, (EGLBoolean)EGL_FALSE);
        if (err != 0) {
            return setError(EGL_BAD_SURFACE, (EGLBoolean)EGL_FALSE);
        } else if (!s->cnx->useAngle) {
            return EGL_TRUE;
        } // else if ANGLE, fall through to the call to the driver (i.e. ANGLE) below
    }

    if (attribute == EGL_TIMESTAMPS_ANDROID) {
@@ -1458,7 +1462,11 @@ EGLBoolean eglSurfaceAttribImpl(EGLDisplay dpy, EGLSurface surface, EGLint attri
            return EGL_TRUE;
        }
        int err = native_window_enable_frame_timestamps(s->getNativeWindow(), value != 0);
        return (err == 0) ? EGL_TRUE : setError(EGL_BAD_SURFACE, (EGLBoolean)EGL_FALSE);
        if (err != 0) {
            return setError(EGL_BAD_SURFACE, (EGLBoolean)EGL_FALSE);
        } else if (!s->cnx->useAngle) {
            return EGL_TRUE;
        } // else if ANGLE, fall through to the call to the driver (i.e. ANGLE) below
    }

    if (s->setSmpte2086Attribute(attribute, value)) {