[gtk+/wip/chergert/quartz-frame-clock: 211/228] textview: specify CAIRO_CONTENT_COLOR for pixelcache



commit a77faf7a4aa86bd2051e6f5fbce4a66b45831b16
Author: Christian Hergert <christian hergert me>
Date:   Mon Sep 7 00:57:51 2015 -0700

    textview: specify CAIRO_CONTENT_COLOR for pixelcache
    
    We always want to be drawing with a RGB backing with no alpha.
    Otherwise, we take compositing slow paths when rendering the
    surface.

 gtk/gtktextview.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c
index e9860d7..15a3c7b 100644
--- a/gtk/gtktextview.c
+++ b/gtk/gtktextview.c
@@ -1652,6 +1652,7 @@ gtk_text_view_init (GtkTextView *text_view)
   gtk_widget_set_can_focus (widget, TRUE);
 
   priv->pixel_cache = _gtk_pixel_cache_new ();
+  _gtk_pixel_cache_set_content (priv->pixel_cache, CAIRO_CONTENT_COLOR);
 
   style_context = gtk_widget_get_style_context (GTK_WIDGET (text_view));
   _gtk_pixel_cache_set_style_context (priv->pixel_cache, style_context);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]