summaryrefslogtreecommitdiff
path: root/cogl/cogl/winsys/cogl-winsys-egl-feature-functions.h
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2018-03-01 23:52:57 +0100
committerCarlos Garnacho <carlosg@gnome.org>2019-01-21 16:33:44 +0100
commit162d6d45a04f40589b7eaa761095b05170015384 (patch)
treea15d76b51ce64b59aa922db0b659998e61822945 /cogl/cogl/winsys/cogl-winsys-egl-feature-functions.h
parentff507273d2b991260ab84fc091dc9954ef61075c (diff)
downloadmutter-wip/carlosg/context-priority.tar.gz
cogl/egl: Use EGL_IMG_context_prioritywip/carlosg/context-priority
As long as the context_priority extension is available request a high priority context, to help the compositor look fluid despite heavy GPU usage from other applications at a regular priority. This becomes sort of pointless if/when unredirection applies, should still help with overview/workspace switch animations, or if the application is not fullscreen. Based on a similar patch by Daniel Stone to Weston.
Diffstat (limited to 'cogl/cogl/winsys/cogl-winsys-egl-feature-functions.h')
-rw-r--r--cogl/cogl/winsys/cogl-winsys-egl-feature-functions.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/cogl/cogl/winsys/cogl-winsys-egl-feature-functions.h b/cogl/cogl/winsys/cogl-winsys-egl-feature-functions.h
index 17a99f269..b21d8b5ab 100644
--- a/cogl/cogl/winsys/cogl-winsys-egl-feature-functions.h
+++ b/cogl/cogl/winsys/cogl-winsys-egl-feature-functions.h
@@ -147,3 +147,11 @@ COGL_WINSYS_FEATURE_BEGIN (surfaceless_context,
"surfaceless_context\0",
COGL_EGL_WINSYS_FEATURE_SURFACELESS_CONTEXT)
COGL_WINSYS_FEATURE_END ()
+
+#ifdef EGL_IMG_context_priority
+COGL_WINSYS_FEATURE_BEGIN (context_priority,
+ "IMG\0",
+ "context_priority\0",
+ COGL_EGL_WINSYS_FEATURE_CONTEXT_PRIORITY)
+COGL_WINSYS_FEATURE_END ()
+#endif