wayland: Don't allocate a full size SHM buffer when drawing using OpenGL
Before this patch, we'd always allocate a full size SHM buffer via the wl_shm_pool, even though it would never be used. Instead allocate a logical 1x1 cairo image surface. https://bugzilla.gnome.org/show_bug.cgi?id=745076
This commit is contained in:
		 Jonas Ådahl
					Jonas Ådahl
				
			
				
					committed by
					
						 Matthias Clasen
						Matthias Clasen
					
				
			
			
				
	
			
			
			 Matthias Clasen
						Matthias Clasen
					
				
			
						parent
						
							aa81262f11
						
					
				
				
					commit
					f13157f4bb
				
			| @ -219,6 +219,7 @@ cairo_surface_t * _gdk_wayland_display_create_shm_surface (GdkWaylandDisplay *di | ||||
| struct wl_buffer *_gdk_wayland_shm_surface_get_wl_buffer (cairo_surface_t *surface); | ||||
| void _gdk_wayland_shm_surface_set_busy (cairo_surface_t *surface); | ||||
| gboolean _gdk_wayland_shm_surface_get_busy (cairo_surface_t *surface); | ||||
| gboolean _gdk_wayland_is_shm_surface (cairo_surface_t *surface); | ||||
|  | ||||
| GdkWaylandSelection * gdk_wayland_display_get_selection (GdkDisplay *display); | ||||
| GdkWaylandSelection * gdk_wayland_selection_new (void); | ||||
|  | ||||
		Reference in New Issue
	
	Block a user