summaryrefslogtreecommitdiff
path: root/src/gl-renderer.h
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2015-05-15 12:12:39 -0500
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>2015-05-18 11:51:45 +0300
commite76f185050e86116ad03fdc0119505dd8c3b367a (patch)
tree27c1ae3ca7d554e9a94c3dea79e1b16e9dd549a5 /src/gl-renderer.h
parentb33877a9cc31120e77a85c58bc7a62708c3a19dc (diff)
downloadweston-e76f185050e86116ad03fdc0119505dd8c3b367a.tar.gz
gl-renderer: Take a list of acceptable formats in create functions
Currently we pass either a single format or no formats to the gl renderer create and output_create functions. We extend this to any number of formats so we can allow fallback formats if we don't get our first pick. Reviewed-By: Bryce Harrington <bryce@osg.samsung.com> Reviewed-By: Pekka Paalanen <pekka.paalanen@collabora.co.uk> Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
Diffstat (limited to 'src/gl-renderer.h')
-rw-r--r--src/gl-renderer.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gl-renderer.h b/src/gl-renderer.h
index ebc139f8..ceb42062 100644
--- a/src/gl-renderer.h
+++ b/src/gl-renderer.h
@@ -76,7 +76,8 @@ struct gl_renderer_interface {
EGLenum platform,
void *native_window,
const EGLint *attribs,
- const EGLint *visual_id);
+ const EGLint *visual_id,
+ const int n_ids);
EGLDisplay (*display)(struct weston_compositor *ec);
@@ -84,7 +85,8 @@ struct gl_renderer_interface {
EGLNativeWindowType window_for_legacy,
void *window_for_platform,
const EGLint *attribs,
- const EGLint *visual_id);
+ const EGLint *visual_id,
+ const int n_ids);
void (*output_destroy)(struct weston_output *output);