summaryrefslogtreecommitdiff
path: root/gdk/gdkwindow.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2018-01-12 20:38:26 -0500
committerMatthias Clasen <mclasen@redhat.com>2018-01-14 17:05:04 -0500
commit1d2606dc94f0bc26619803df310c35f600f14063 (patch)
treefa90094d2afb4d69d68167ebfe94c2dd3e2b1e1e /gdk/gdkwindow.c
parent08dc2cd6a85bcc2012bbcfab96d9566a0d619fcf (diff)
downloadgtk+-1d2606dc94f0bc26619803df310c35f600f14063.tar.gz
Drop the cairo-recording debug flag
It is not very useful. The cairo-image option on the other hand is has been useful in tracking down problems in the past, so we'll keep it.
Diffstat (limited to 'gdk/gdkwindow.c')
-rw-r--r--gdk/gdkwindow.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index f29e114dba..6641c122af 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -5770,13 +5770,7 @@ gdk_window_create_similar_surface (GdkWindow * window,
sx = sy = 1;
cairo_surface_get_device_scale (window_surface, &sx, &sy);
- if (GDK_DISPLAY_DEBUG_CHECK (window->display, CAIRO_RECORDING))
- {
- cairo_rectangle_t rect = { 0, 0, width * sx, height *sy };
- surface = cairo_recording_surface_create (content, &rect);
- cairo_surface_set_device_scale (surface, sx, sy);
- }
- else if (GDK_DISPLAY_DEBUG_CHECK (window->display, CAIRO_IMAGE))
+ if (GDK_DISPLAY_DEBUG_CHECK (window->display, CAIRO_IMAGE))
{
surface = cairo_image_surface_create (content == CAIRO_CONTENT_COLOR ? CAIRO_FORMAT_RGB24 :
content == CAIRO_CONTENT_ALPHA ? CAIRO_FORMAT_A8 : CAIRO_FORMAT_ARGB32,