diff options
author | Rob Herring <[email protected]> | 2016-02-02 14:23:08 -0600 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2016-04-01 13:45:08 +0100 |
commit | e21e81aa1885287e438970429d44abb8b3dabb96 (patch) | |
tree | 785b1ee7d63a251c04a6eae6947fa8b058b2b858 /src/egl/main/eglconfig.c | |
parent | 8975527f58afd4af77966c6e46b485fc04008779 (diff) |
egl: Add EGL_RECORDABLE_ANDROID attribute
This is used by Android to select an eglconfig compatible with screen
recording.
Cc: [email protected]
Signed-off-by: Rob Herring <[email protected]>
[Emil Velikov: add the _eglIsConfigAttribValid check]
Signed-off-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/egl/main/eglconfig.c')
-rw-r--r-- | src/egl/main/eglconfig.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/egl/main/eglconfig.c b/src/egl/main/eglconfig.c index 7d2791ca340..435d9245384 100644 --- a/src/egl/main/eglconfig.c +++ b/src/egl/main/eglconfig.c @@ -249,6 +249,9 @@ static const struct { { EGL_FRAMEBUFFER_TARGET_ANDROID, ATTRIB_TYPE_BOOLEAN, ATTRIB_CRITERION_EXACT, EGL_DONT_CARE }, + { EGL_RECORDABLE_ANDROID, ATTRIB_TYPE_BOOLEAN, + ATTRIB_CRITERION_EXACT, + EGL_DONT_CARE }, }; @@ -493,6 +496,8 @@ _eglIsConfigAttribValid(_EGLConfig *conf, EGLint attr) return conf->Display->Extensions.NOK_texture_from_pixmap; case EGL_FRAMEBUFFER_TARGET_ANDROID: return conf->Display->Extensions.ANDROID_framebuffer_target; + case EGL_RECORDABLE_ANDROID: + return conf->Display->Extensions.ANDROID_recordable; default: break; } |