forked from AuroraMiddleware/gtk
surface: Make process_updates no longer be a vfunc
This commit is contained in:
parent
ade14779b1
commit
b01ee88f11
@ -318,9 +318,6 @@ GdkDrawingContext *gdk_surface_get_drawing_context (GdkSurface *surface);
|
||||
|
||||
cairo_region_t *gdk_surface_get_current_paint_region (GdkSurface *surface);
|
||||
|
||||
void _gdk_surface_process_updates_recurse (GdkSurface *surface,
|
||||
cairo_region_t *expose_region);
|
||||
|
||||
/*****************************************
|
||||
* Interfaces provided by windowing code *
|
||||
*****************************************/
|
||||
|
@ -2067,9 +2067,9 @@ gdk_surface_schedule_update (GdkSurface *surface)
|
||||
GDK_FRAME_CLOCK_PHASE_PAINT);
|
||||
}
|
||||
|
||||
void
|
||||
_gdk_surface_process_updates_recurse (GdkSurface *surface,
|
||||
cairo_region_t *expose_region)
|
||||
static void
|
||||
gdk_surface_process_updates_recurse (GdkSurface *surface,
|
||||
cairo_region_t *expose_region)
|
||||
{
|
||||
GdkEvent *event;
|
||||
|
||||
@ -2093,8 +2093,6 @@ _gdk_surface_process_updates_recurse (GdkSurface *surface,
|
||||
static void
|
||||
gdk_surface_process_updates_internal (GdkSurface *surface)
|
||||
{
|
||||
GdkSurfaceImplClass *impl_class;
|
||||
|
||||
/* Ensure the surface lives while updating it */
|
||||
g_object_ref (surface);
|
||||
|
||||
@ -2117,9 +2115,7 @@ gdk_surface_process_updates_internal (GdkSurface *surface)
|
||||
|
||||
expose_region = cairo_region_copy (surface->active_update_area);
|
||||
|
||||
impl_class = GDK_SURFACE_IMPL_GET_CLASS (surface->impl);
|
||||
|
||||
impl_class->process_updates_recurse (surface, expose_region);
|
||||
gdk_surface_process_updates_recurse (surface, expose_region);
|
||||
|
||||
gdk_surface_append_old_updated_area (surface, surface->active_update_area);
|
||||
|
||||
|
@ -325,19 +325,11 @@ gdk_surface_impl_move_to_rect (GdkSurface *surface,
|
||||
flipped_y);
|
||||
}
|
||||
|
||||
static void
|
||||
gdk_surface_impl_process_updates_recurse (GdkSurface *surface,
|
||||
cairo_region_t *region)
|
||||
{
|
||||
_gdk_surface_process_updates_recurse (surface, region);
|
||||
}
|
||||
|
||||
static void
|
||||
gdk_surface_impl_class_init (GdkSurfaceImplClass *impl_class)
|
||||
{
|
||||
impl_class->beep = gdk_surface_impl_beep;
|
||||
impl_class->move_to_rect = gdk_surface_impl_move_to_rect;
|
||||
impl_class->process_updates_recurse = gdk_surface_impl_process_updates_recurse;
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -211,9 +211,6 @@ struct _GdkSurfaceImplClass
|
||||
gint dx,
|
||||
gint dy);
|
||||
|
||||
void (*process_updates_recurse) (GdkSurface *surface,
|
||||
cairo_region_t *region);
|
||||
|
||||
gint (* get_scale_factor) (GdkSurface *surface);
|
||||
void (* get_unscaled_size) (GdkSurface *surface,
|
||||
int *unscaled_width,
|
||||
|
Loading…
Reference in New Issue
Block a user