gdkwidow: Make queue_antiexpose optional

This commit is contained in:
Jasper St. Pierre 2014-06-21 18:43:28 -04:00
parent 8ae546857c
commit 0dfd506b3c
5 changed files with 4 additions and 29 deletions

View File

@ -1495,12 +1495,6 @@ _gdk_broadway_display_after_process_all_updates (GdkDisplay *display)
{
}
static void
gdk_broadway_window_queue_antiexpose (GdkWindow *window,
cairo_region_t *area)
{
}
guint32
gdk_broadway_get_last_seen_time (GdkWindow *window)
{
@ -1538,7 +1532,6 @@ gdk_window_impl_broadway_class_init (GdkWindowImplBroadwayClass *klass)
impl_class->shape_combine_region = gdk_window_broadway_shape_combine_region;
impl_class->input_shape_combine_region = gdk_window_broadway_input_shape_combine_region;
impl_class->set_static_gravities = gdk_window_broadway_set_static_gravities;
impl_class->queue_antiexpose = gdk_broadway_window_queue_antiexpose;
impl_class->destroy = _gdk_broadway_window_destroy;
impl_class->destroy_foreign = gdk_broadway_window_destroy_foreign;
impl_class->get_shape = gdk_broadway_window_get_shape;

View File

@ -3374,7 +3374,10 @@ gdk_window_process_updates_internal (GdkWindow *window)
cairo_region_get_extents (update_area, &clip_box);
expose_region = cairo_region_copy (update_area);
impl_class = GDK_WINDOW_IMPL_GET_CLASS (window->impl);
impl_class->queue_antiexpose (window, update_area);
if (impl_class->queue_antiexpose)
impl_class->queue_antiexpose (window, update_area);
impl_class->process_updates_recurse (window, expose_region);
cairo_region_destroy (expose_region);
}

View File

@ -2057,12 +2057,6 @@ gdk_window_quartz_set_static_gravities (GdkWindow *window,
return FALSE;
}
static void
gdk_quartz_window_queue_antiexpose (GdkWindow *window,
cairo_region_t *area)
{
}
static void
gdk_quartz_window_set_focus_on_map (GdkWindow *window,
gboolean focus_on_map)
@ -2894,7 +2888,6 @@ gdk_window_impl_quartz_class_init (GdkWindowImplQuartzClass *klass)
impl_class->shape_combine_region = gdk_window_quartz_shape_combine_region;
impl_class->input_shape_combine_region = gdk_window_quartz_input_shape_combine_region;
impl_class->set_static_gravities = gdk_window_quartz_set_static_gravities;
impl_class->queue_antiexpose = gdk_quartz_window_queue_antiexpose;
impl_class->destroy = gdk_quartz_window_destroy;
impl_class->destroy_foreign = gdk_quartz_window_destroy_foreign;
impl_class->get_shape = gdk_quartz_window_get_shape;

View File

@ -1335,12 +1335,6 @@ gdk_window_wayland_set_static_gravities (GdkWindow *window,
return TRUE;
}
static void
gdk_wayland_window_queue_antiexpose (GdkWindow *window,
cairo_region_t *area)
{
}
static void
gdk_wayland_window_destroy (GdkWindow *window,
gboolean recursing,
@ -1983,7 +1977,6 @@ _gdk_window_impl_wayland_class_init (GdkWindowImplWaylandClass *klass)
impl_class->shape_combine_region = gdk_window_wayland_shape_combine_region;
impl_class->input_shape_combine_region = gdk_window_wayland_input_shape_combine_region;
impl_class->set_static_gravities = gdk_window_wayland_set_static_gravities;
impl_class->queue_antiexpose = gdk_wayland_window_queue_antiexpose;
impl_class->destroy = gdk_wayland_window_destroy;
impl_class->destroy_foreign = gdk_window_wayland_destroy_foreign;
impl_class->get_shape = gdk_wayland_window_get_shape;

View File

@ -3238,12 +3238,6 @@ gdk_win32_window_get_shape (GdkWindow *window)
return NULL;
}
static void
_gdk_win32_window_queue_antiexpose (GdkWindow *window,
cairo_region_t *area)
{
}
static void
gdk_win32_input_shape_combine_region (GdkWindow *window,
const cairo_region_t *shape_region,
@ -3409,7 +3403,6 @@ gdk_window_impl_win32_class_init (GdkWindowImplWin32Class *klass)
impl_class->shape_combine_region = gdk_win32_window_shape_combine_region;
impl_class->input_shape_combine_region = gdk_win32_input_shape_combine_region;
impl_class->set_static_gravities = gdk_win32_window_set_static_gravities;
impl_class->queue_antiexpose = _gdk_win32_window_queue_antiexpose;
impl_class->destroy = gdk_win32_window_destroy;
impl_class->destroy_foreign = gdk_win32_window_destroy_foreign;
impl_class->get_shape = gdk_win32_window_get_shape;