[gtk+] debug: Remove pixel-cache debug categories



commit 22a657004b9c591cef7f4dd6b845192e7fc28529
Author: Benjamin Otte <otte redhat com>
Date:   Tue Dec 20 18:30:14 2016 +0100

    debug: Remove pixel-cache debug categories
    
    We have no more pixel cache, so they are kind of useless.

 docs/reference/gtk/running.sgml |   12 ------------
 gtk/gtkdebug.h                  |   12 +++++-------
 gtk/gtkmain.c                   |    2 --
 gtk/inspector/visual.c          |   22 ----------------------
 gtk/inspector/visual.ui         |   35 -----------------------------------
 5 files changed, 5 insertions(+), 78 deletions(-)
---
diff --git a/docs/reference/gtk/running.sgml b/docs/reference/gtk/running.sgml
index 8f48d3d..3bc8f35 100644
--- a/docs/reference/gtk/running.sgml
+++ b/docs/reference/gtk/running.sgml
@@ -179,18 +179,6 @@ additional environment variables.
       <listitem><para>Bypass caching for CSS style properties</para></listitem>
     </varlistentry>
     <varlistentry>
-      <term>no-pixel-cache</term>
-      <listitem><para>Disable the pixel cache</para></listitem>
-    </varlistentry>
-    <varlistentry>
-      <term>plugsocket</term>
-      <listitem><para>Cross-process embedding</para></listitem>
-    </varlistentry>
-    <varlistentry>
-      <term>pixel-cache</term>
-      <listitem><para>Pixel cache</para></listitem>
-    </varlistentry>
-    <varlistentry>
       <term>printing</term>
       <listitem><para>Printing support</para></listitem>
     </varlistentry>
diff --git a/gtk/gtkdebug.h b/gtk/gtkdebug.h
index ec806dc..3f624a9 100644
--- a/gtk/gtkdebug.h
+++ b/gtk/gtkdebug.h
@@ -49,13 +49,11 @@ typedef enum {
   GTK_DEBUG_SIZE_REQUEST    = 1 << 11,
   GTK_DEBUG_NO_CSS_CACHE    = 1 << 12,
   GTK_DEBUG_BASELINES       = 1 << 13,
-  GTK_DEBUG_PIXEL_CACHE     = 1 << 14,
-  GTK_DEBUG_NO_PIXEL_CACHE  = 1 << 15,
-  GTK_DEBUG_INTERACTIVE     = 1 << 16,
-  GTK_DEBUG_TOUCHSCREEN     = 1 << 17,
-  GTK_DEBUG_ACTIONS         = 1 << 18,
-  GTK_DEBUG_RESIZE          = 1 << 19,
-  GTK_DEBUG_LAYOUT          = 1 << 20
+  GTK_DEBUG_INTERACTIVE     = 1 << 14,
+  GTK_DEBUG_TOUCHSCREEN     = 1 << 15,
+  GTK_DEBUG_ACTIONS         = 1 << 16,
+  GTK_DEBUG_RESIZE          = 1 << 17,
+  GTK_DEBUG_LAYOUT          = 1 << 18
 } GtkDebugFlag;
 
 #ifdef G_ENABLE_DEBUG
diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c
index 25e2047..21d1870 100644
--- a/gtk/gtkmain.c
+++ b/gtk/gtkmain.c
@@ -167,8 +167,6 @@ static const GDebugKey gtk_debug_keys[] = {
   { "size-request", GTK_DEBUG_SIZE_REQUEST },
   { "no-css-cache", GTK_DEBUG_NO_CSS_CACHE },
   { "baselines", GTK_DEBUG_BASELINES },
-  { "pixel-cache", GTK_DEBUG_PIXEL_CACHE },
-  { "no-pixel-cache", GTK_DEBUG_NO_PIXEL_CACHE },
   { "interactive", GTK_DEBUG_INTERACTIVE },
   { "touchscreen", GTK_DEBUG_TOUCHSCREEN },
   { "actions", GTK_DEBUG_ACTIONS },
diff --git a/gtk/inspector/visual.c b/gtk/inspector/visual.c
index 718043a..400a751 100644
--- a/gtk/inspector/visual.c
+++ b/gtk/inspector/visual.c
@@ -270,27 +270,6 @@ layout_activate (GtkSwitch *sw)
 }
 
 static void
-pixelcache_activate (GtkSwitch *sw)
-{
-  guint flags;
-
-  flags = gtk_get_debug_flags ();
-
-  if (gtk_switch_get_active (sw))
-    flags |= GTK_DEBUG_PIXEL_CACHE;
-  else
-    flags &= ~GTK_DEBUG_PIXEL_CACHE;
-
-  gtk_set_debug_flags (flags);
-  /* FIXME: this doesn't work, because it is redrawing
-   * _from_ the cache. We need to recurse over the tree
-   * and invalidate the pixel cache of every widget that
-   * has one.
-   */
-  redraw_everything ();
-}
-
-static void
 widget_resize_activate (GtkSwitch *sw)
 {
   guint flags = gtk_get_debug_flags ();
@@ -940,7 +919,6 @@ gtk_inspector_visual_class_init (GtkInspectorVisualClass *klass)
   gtk_widget_class_bind_template_callback (widget_class, rendering_mode_changed);
   gtk_widget_class_bind_template_callback (widget_class, baselines_activate);
   gtk_widget_class_bind_template_callback (widget_class, layout_activate);
-  gtk_widget_class_bind_template_callback (widget_class, pixelcache_activate);
   gtk_widget_class_bind_template_callback (widget_class, widget_resize_activate);
   gtk_widget_class_bind_template_callback (widget_class, software_gl_activate);
   gtk_widget_class_bind_template_callback (widget_class, software_surface_activate);
diff --git a/gtk/inspector/visual.ui b/gtk/inspector/visual.ui
index 4bf1867..7e28451 100644
--- a/gtk/inspector/visual.ui
+++ b/gtk/inspector/visual.ui
@@ -610,40 +610,6 @@
                         <property name="margin">10</property>
                         <property name="spacing">40</property>
                         <child>
-                          <object class="GtkLabel" id="pixelcache_label">
-                            <property name="visible">True</property>
-                            <property name="label" translatable="yes">Show Pixel Cache</property>
-                            <property name="halign">start</property>
-                            <property name="valign">baseline</property>
-                            <property name="xalign">0.0</property>
-                          </object>
-                        </child>
-                        <child>
-                          <object class="GtkSwitch" id="pixelcache_switch">
-                            <property name="visible">True</property>
-                            <property name="halign">end</property>
-                            <property name="valign">baseline</property>
-                            <signal name="notify::active" handler="pixelcache_activate"/>
-                          </object>
-                          <packing>
-                            <property name="expand">True</property>
-                          </packing>
-                        </child>
-                      </object>
-                    </child>
-                  </object>
-                </child>
-                <child>
-                  <object class="GtkListBoxRow">
-                    <property name="visible">True</property>
-                    <property name="activatable">False</property>
-                    <child>
-                      <object class="GtkBox">
-                        <property name="visible">True</property>
-                        <property name="orientation">horizontal</property>
-                        <property name="margin">10</property>
-                        <property name="spacing">40</property>
-                        <child>
                           <object class="GtkLabel">
                             <property name="visible">True</property>
                             <property name="label" translatable="yes">Show Widget Resizes</property>
@@ -875,7 +841,6 @@
       <widget name="updates_label"/>
       <widget name="baselines_label"/>
       <widget name="layout_label"/>
-      <widget name="pixelcache_label"/>
       <widget name="touchscreen_label"/>
       <widget name="gl_label"/>
       <widget name="software_gl_label"/>


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