gtk-gl-area.c (7c37270b3fbe3d034ba80e488761461676e21eb4) gtk-gl-area.c (568b12fccfe5394326df1ce3e10790608d439a37)
1/*
2 * GTK UI -- glarea opengl code.
3 *
4 * Requires 3.16+ (GtkGLArea widget).
5 *
6 * This work is licensed under the terms of the GNU GPL, version 2 or later.
7 * See the COPYING file in the top-level directory.
8 */

--- 184 unchanged lines hidden (view full) ---

193 return;
194 }
195
196 gtk_gl_area_set_scanout_mode(vc, true);
197 egl_fb_setup_for_tex(&vc->gfx.guest_fb, backing_width, backing_height,
198 backing_id, false);
199}
200
1/*
2 * GTK UI -- glarea opengl code.
3 *
4 * Requires 3.16+ (GtkGLArea widget).
5 *
6 * This work is licensed under the terms of the GNU GPL, version 2 or later.
7 * See the COPYING file in the top-level directory.
8 */

--- 184 unchanged lines hidden (view full) ---

193 return;
194 }
195
196 gtk_gl_area_set_scanout_mode(vc, true);
197 egl_fb_setup_for_tex(&vc->gfx.guest_fb, backing_width, backing_height,
198 backing_id, false);
199}
200
201void gd_gl_area_scanout_disable(DisplayChangeListener *dcl)
202{
203 VirtualConsole *vc = container_of(dcl, VirtualConsole, gfx.dcl);
204
205 gtk_gl_area_set_scanout_mode(vc, false);
206}
207
201void gd_gl_area_scanout_flush(DisplayChangeListener *dcl,
202 uint32_t x, uint32_t y, uint32_t w, uint32_t h)
203{
204 VirtualConsole *vc = container_of(dcl, VirtualConsole, gfx.dcl);
205
206 gtk_gl_area_queue_render(GTK_GL_AREA(vc->gfx.drawing_area));
207}
208

--- 16 unchanged lines hidden ---
208void gd_gl_area_scanout_flush(DisplayChangeListener *dcl,
209 uint32_t x, uint32_t y, uint32_t w, uint32_t h)
210{
211 VirtualConsole *vc = container_of(dcl, VirtualConsole, gfx.dcl);
212
213 gtk_gl_area_queue_render(GTK_GL_AREA(vc->gfx.drawing_area));
214}
215

--- 16 unchanged lines hidden ---