diff options
author | Alexander Larsson <alexl@redhat.com> | 2017-01-11 12:47:32 +0100 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2017-01-11 12:47:32 +0100 |
commit | e380e8c2ccd418ded179ebe5bb3c6c03febfa0d7 (patch) | |
tree | 3b9b7bd47721d433e426d8bf25fc3d5e815fabbc /gtk/gtktextview.c | |
parent | 68a27a995160894c1075dcdc163382a1714f0db6 (diff) | |
download | gtk+-wip/alexl/optimize-snapshot.tar.gz |
DO NOT MERGE - test codewip/alexl/optimize-snapshot
This adds some spew for snapshot and render time, and
adds tweaks for testing:
GSK_NO_RENDER setenv to completely skip the render phase (for profiling)
GSK_NO_LAYOUT setenv to disable pango layout nodes
Also, disable some widget from rendering to avoid fallback:
entry
textview
Diffstat (limited to 'gtk/gtktextview.c')
-rw-r--r-- | gtk/gtktextview.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c index 7f4f79a19c..0b61d47275 100644 --- a/gtk/gtktextview.c +++ b/gtk/gtktextview.c @@ -428,6 +428,8 @@ static gint gtk_text_view_motion_event (GtkWidget *widget, GdkEventMotion *event); static gint gtk_text_view_draw (GtkWidget *widget, cairo_t *cr); +static void gtk_text_view_snapshot (GtkWidget *widget, + GtkSnapshot *snapshot); static gboolean gtk_text_view_focus (GtkWidget *widget, GtkDirectionType direction); static void gtk_text_view_select_all (GtkWidget *widget, @@ -737,6 +739,7 @@ gtk_text_view_class_init (GtkTextViewClass *klass) gobject_class->get_property = gtk_text_view_get_property; gobject_class->finalize = gtk_text_view_finalize; + widget_class->snapshot = gtk_text_view_snapshot; widget_class->destroy = gtk_text_view_destroy; widget_class->realize = gtk_text_view_realize; widget_class->unrealize = gtk_text_view_unrealize; @@ -5901,6 +5904,12 @@ paint_border_window (GtkTextView *text_view, gtk_style_context_restore (context); } +static void +gtk_text_view_snapshot (GtkWidget *widget, + GtkSnapshot *snapshot) +{ +} + static gboolean gtk_text_view_draw (GtkWidget *widget, cairo_t *cr) |