mirror of
https://gitlab.freedesktop.org/wayland/weston
synced 2024-07-22 11:14:21 +00:00
gl-renderer: Rename <attribs> param of gl_renderer to <config_attribs>
This change renames <attribs> parameter of gl_renderer_display_create() and gl_renderer_output_window_create() to <config_attribs> to explain which attribs it is. Signed-off-by: Miguel A Vico Moya <mvicomoya@nvidia.com> Reviewed-by: Andy Ritger <aritger@nvidia.com> Reviewed-by: James Jones <jajones@nvidia.com> [Pekka: remove notes about EGLOutput] Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
This commit is contained in:
parent
c095cde364
commit
4057cd93d6
|
@ -2643,7 +2643,7 @@ static int
|
||||||
gl_renderer_output_window_create(struct weston_output *output,
|
gl_renderer_output_window_create(struct weston_output *output,
|
||||||
EGLNativeWindowType window_for_legacy,
|
EGLNativeWindowType window_for_legacy,
|
||||||
void *window_for_platform,
|
void *window_for_platform,
|
||||||
const EGLint *attribs,
|
const EGLint *config_attribs,
|
||||||
const EGLint *visual_id,
|
const EGLint *visual_id,
|
||||||
int n_ids)
|
int n_ids)
|
||||||
{
|
{
|
||||||
|
@ -2653,7 +2653,7 @@ gl_renderer_output_window_create(struct weston_output *output,
|
||||||
EGLConfig egl_config;
|
EGLConfig egl_config;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
if (egl_choose_config(gr, attribs, visual_id,
|
if (egl_choose_config(gr, config_attribs, visual_id,
|
||||||
n_ids, &egl_config) == -1) {
|
n_ids, &egl_config) == -1) {
|
||||||
weston_log("failed to choose EGL config for output\n");
|
weston_log("failed to choose EGL config for output\n");
|
||||||
return -1;
|
return -1;
|
||||||
|
@ -2990,7 +2990,7 @@ gl_renderer_create_pbuffer_surface(struct gl_renderer *gr) {
|
||||||
|
|
||||||
static int
|
static int
|
||||||
gl_renderer_display_create(struct weston_compositor *ec, EGLenum platform,
|
gl_renderer_display_create(struct weston_compositor *ec, EGLenum platform,
|
||||||
void *native_window, const EGLint *attribs,
|
void *native_window, const EGLint *config_attribs,
|
||||||
const EGLint *visual_id, int n_ids)
|
const EGLint *visual_id, int n_ids)
|
||||||
{
|
{
|
||||||
struct gl_renderer *gr;
|
struct gl_renderer *gr;
|
||||||
|
@ -3054,7 +3054,7 @@ gl_renderer_display_create(struct weston_compositor *ec, EGLenum platform,
|
||||||
goto fail_with_error;
|
goto fail_with_error;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (egl_choose_config(gr, attribs, visual_id,
|
if (egl_choose_config(gr, config_attribs, visual_id,
|
||||||
n_ids, &gr->egl_config) < 0) {
|
n_ids, &gr->egl_config) < 0) {
|
||||||
weston_log("failed to choose EGL config\n");
|
weston_log("failed to choose EGL config\n");
|
||||||
goto fail_terminate;
|
goto fail_terminate;
|
||||||
|
|
|
@ -63,7 +63,7 @@ struct gl_renderer_interface {
|
||||||
int (*display_create)(struct weston_compositor *ec,
|
int (*display_create)(struct weston_compositor *ec,
|
||||||
EGLenum platform,
|
EGLenum platform,
|
||||||
void *native_window,
|
void *native_window,
|
||||||
const EGLint *attribs,
|
const EGLint *config_attribs,
|
||||||
const EGLint *visual_id,
|
const EGLint *visual_id,
|
||||||
const int n_ids);
|
const int n_ids);
|
||||||
|
|
||||||
|
@ -72,7 +72,7 @@ struct gl_renderer_interface {
|
||||||
int (*output_window_create)(struct weston_output *output,
|
int (*output_window_create)(struct weston_output *output,
|
||||||
EGLNativeWindowType window_for_legacy,
|
EGLNativeWindowType window_for_legacy,
|
||||||
void *window_for_platform,
|
void *window_for_platform,
|
||||||
const EGLint *attribs,
|
const EGLint *config_attribs,
|
||||||
const EGLint *visual_id,
|
const EGLint *visual_id,
|
||||||
const int n_ids);
|
const int n_ids);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue