]> Pileus Git - ~andy/gtk/commit - gdk/gdkwindow.c
Avoid unnecessary window flushes
authorAlexander Larsson <alexl@redhat.com>
Wed, 22 Aug 2012 15:01:15 +0000 (17:01 +0200)
committerAlexander Larsson <alexl@redhat.com>
Thu, 23 Aug 2012 10:16:43 +0000 (12:16 +0200)
commit04811d948392f489b1febabe973337fcfa53c918
tree110f7ad5181c62c3c700e4bee9629ad87e3af527
parent8946cd70e1d62211d192f0e93b78a5e01d52b378
Avoid unnecessary window flushes

The code was calling _gdk_window_ref_cairo_surface in a few places
where the intent was not to read/write to the surface, but just look
at its type (to e.g. create a similar surface). This is bad, as that
operation causes a flush which may cause unnecessary work and/or
flashing. Instead we just get the impl surface in these cases.
gdk/gdkwindow.c