platform: rename create_egl_window to create_egl_surface
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
This commit is contained in:
committed by
Pekka Paalanen
parent
759fbf4d0f
commit
abff883d2c
@@ -309,8 +309,8 @@ nested_client_create(void)
|
||||
client->native = wl_egl_window_create(client->surface,
|
||||
client->width, client->height);
|
||||
|
||||
client->egl_surface = weston_platform_create_egl_window (client->egl_display,
|
||||
client->egl_config,
|
||||
client->egl_surface = weston_platform_create_egl_surface(client->egl_display,
|
||||
nclient->egl_config,
|
||||
client->native, NULL);
|
||||
|
||||
eglMakeCurrent(client->egl_display, client->egl_surface,
|
||||
|
||||
@@ -386,9 +386,9 @@ create_surface(struct window *window)
|
||||
window->geometry.width,
|
||||
window->geometry.height);
|
||||
window->egl_surface =
|
||||
weston_platform_create_egl_window(display->egl.dpy,
|
||||
display->egl.conf,
|
||||
window->native, NULL);
|
||||
weston_platform_create_egl_surface(display->egl.dpy,
|
||||
display->egl.conf,
|
||||
window->native, NULL);
|
||||
|
||||
|
||||
if (display->shell) {
|
||||
|
||||
@@ -422,9 +422,9 @@ triangle_create_egl_surface(struct triangle *tri, int width, int height)
|
||||
|
||||
tri->wl_surface = widget_get_wl_surface(tri->widget);
|
||||
tri->egl_window = wl_egl_window_create(tri->wl_surface, width, height);
|
||||
tri->egl_surface = weston_platform_create_egl_window(tri->egl->dpy,
|
||||
tri->egl->conf,
|
||||
tri->egl_window, NULL);
|
||||
tri->egl_surface = weston_platform_create_egl_surface(tri->egl->dpy,
|
||||
tri->egl->conf,
|
||||
tri->egl_window, NULL);
|
||||
|
||||
ret = eglMakeCurrent(tri->egl->dpy, tri->egl_surface,
|
||||
tri->egl_surface, tri->egl->ctx);
|
||||
|
||||
+3
-3
@@ -641,9 +641,9 @@ egl_window_surface_create(struct display *display,
|
||||
rectangle->height);
|
||||
|
||||
surface->egl_surface =
|
||||
weston_platform_create_egl_window(display->dpy,
|
||||
display->argb_config,
|
||||
surface->egl_window, NULL);
|
||||
weston_platform_create_egl_surface(display->dpy,
|
||||
display->argb_config,
|
||||
surface->egl_window, NULL);
|
||||
|
||||
surface->cairo_surface =
|
||||
cairo_gl_surface_create_for_egl(display->argb_device,
|
||||
|
||||
Reference in New Issue
Block a user