<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>84149</bug_id>
          
          <creation_ts>2012-04-17 06:42:27 -0700</creation_ts>
          <short_desc>[GTK] Enable back double buffering on WebKitWebView to fix flickering</short_desc>
          <delta_ts>2012-04-22 18:03:40 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKitGTK</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Carlos Garnacho">carlosg</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>carlosg</cc>
    
    <cc>cgarcia</cc>
    
    <cc>gustavo</cc>
    
    <cc>mrobinson</cc>
    
    <cc>webkit.review.bot</cc>
    
    <cc>zan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>603987</commentid>
    <comment_count>0</comment_count>
    <who name="Carlos Garnacho">carlosg</who>
    <bug_when>2012-04-17 06:42:27 -0700</bug_when>
    <thetext>WebKitWebView disables GTK+ double buffering as it already has its own backing store, as worthwhile as it is, it unfortunately brings in other side effects in how non-double-buffered widgets are rendered, from the docs of gdk_window_flush():

  &quot;For Gtk widgets that don&apos;t use double buffering this will be called automatically before sending the expose event&quot;

This means that all drawing commands up to the WebKitWebView parent GdkWindow are flushed to the X server before rendering the view itself, this may translate into flickering of the parent window background. GTK+ unfortunately has no means to let WebKit claim ownership on the backing buffer, nor to hand a surface to act as the backing buffer for a widget, so this has to be enabled back so all contents are composited before getting to the front store.

I&apos;m going to attach a patch to remove the gtk_widget_set_double_buffered() call from wk1, as for wk2 the flickering is reportedly non visible, but I think the same issue may lie there, just better hidden.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>603989</commentid>
    <comment_count>1</comment_count>
      <attachid>137530</attachid>
    <who name="Carlos Garnacho">carlosg</who>
    <bug_when>2012-04-17 06:47:04 -0700</bug_when>
    <thetext>Created attachment 137530
Patch, enable back GTK+ double buffering to fix flickering</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>603991</commentid>
    <comment_count>2</comment_count>
      <attachid>137530</attachid>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-04-17 06:47:47 -0700</bug_when>
    <thetext>Comment on attachment 137530
Patch, enable back GTK+ double buffering to fix flickering

Rejecting attachment 137530 from review queue.

carlosg@gnome.org does not have reviewer permissions according to http://trac.webkit.org/browser/trunk/Tools/Scripts/webkitpy/common/config/committers.py.

- If you do not have reviewer rights please read http://webkit.org/coding/contributing.html for instructions on how to use bugzilla flags.

- If you have reviewer rights please correct the error in Tools/Scripts/webkitpy/common/config/committers.py by adding yourself to the file (no review needed).  The commit-queue restarts itself every 2 hours.  After restart the commit-queue will correctly respect your reviewer rights.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>603992</commentid>
    <comment_count>3</comment_count>
      <attachid>137530</attachid>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-04-17 06:48:29 -0700</bug_when>
    <thetext>Comment on attachment 137530
Patch, enable back GTK+ double buffering to fix flickering

Rejecting attachment 137530 from commit-queue.

carlosg@gnome.org does not have committer permissions according to http://trac.webkit.org/browser/trunk/Tools/Scripts/webkitpy/common/config/committers.py.

- If you do not have committer rights please read http://webkit.org/coding/contributing.html for instructions on how to use bugzilla flags.

- If you have committer rights please correct the error in Tools/Scripts/webkitpy/common/config/committers.py by adding yourself to the file (no review needed).  The commit-queue restarts itself every 2 hours.  After restart the commit-queue will correctly respect your committer rights.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>603995</commentid>
    <comment_count>4</comment_count>
      <attachid>137530</attachid>
    <who name="Carlos Garnacho">carlosg</who>
    <bug_when>2012-04-17 06:51:43 -0700</bug_when>
    <thetext>Comment on attachment 137530
Patch, enable back GTK+ double buffering to fix flickering

Ehrm... unused to bugzilla review stuff, sorry :), setting to &apos;?&apos; now</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>604015</commentid>
    <comment_count>5</comment_count>
      <attachid>137530</attachid>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2012-04-17 07:44:59 -0700</bug_when>
    <thetext>Comment on attachment 137530
Patch, enable back GTK+ double buffering to fix flickering

It&apos;s ok for me as long as this doesn&apos;t have a huge impact in performance, since the flickering effect is quite annoying.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>604061</commentid>
    <comment_count>6</comment_count>
      <attachid>137530</attachid>
    <who name="Martin Robinson">mrobinson</who>
    <bug_when>2012-04-17 09:04:34 -0700</bug_when>
    <thetext>Comment on attachment 137530
Patch, enable back GTK+ double buffering to fix flickering

Thanks for spending the time to fix this!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>604068</commentid>
    <comment_count>7</comment_count>
      <attachid>137530</attachid>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-04-17 09:12:40 -0700</bug_when>
    <thetext>Comment on attachment 137530
Patch, enable back GTK+ double buffering to fix flickering

Clearing flags on attachment: 137530

Committed r114385: &lt;http://trac.webkit.org/changeset/114385&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>604069</commentid>
    <comment_count>8</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2012-04-17 09:12:44 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>607411</commentid>
    <comment_count>9</comment_count>
    <who name="Martin Robinson">mrobinson</who>
    <bug_when>2012-04-22 18:03:40 -0700</bug_when>
    <thetext>*** Bug 80747 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>137530</attachid>
            <date>2012-04-17 06:47:04 -0700</date>
            <delta_ts>2012-04-17 09:12:40 -0700</delta_ts>
            <desc>Patch, enable back GTK+ double buffering to fix flickering</desc>
            <filename>patch-84149</filename>
            <type>text/plain</type>
            <size>2075</size>
            <attacher name="Carlos Garnacho">carlosg</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1NvdXJjZS9XZWJLaXQvZ3RrL0NoYW5nZUxvZyBiL1NvdXJjZS9XZWJLaXQv
Z3RrL0NoYW5nZUxvZwppbmRleCAxYzlmNTAyLi4wN2Y2OWJmIDEwMDY0NAotLS0gYS9Tb3VyY2Uv
V2ViS2l0L2d0ay9DaGFuZ2VMb2cKKysrIGIvU291cmNlL1dlYktpdC9ndGsvQ2hhbmdlTG9nCkBA
IC0xLDMgKzEsMjYgQEAKKzIwMTItMDQtMTcgIENhcmxvcyBHYXJuYWNobyAgPGNhcmxvc0BsYW5l
ZG8uY29tPgorCisgICAgICAgIFtHVEtdIEVuYWJsZSBiYWNrIGRvdWJsZSBidWZmZXJpbmcgb24g
V2ViS2l0V2ViVmlldyB0byBmaXggZmxpY2tlcmluZworICAgICAgICBodHRwczovL2J1Z3Mud2Vi
a2l0Lm9yZy9zaG93X2J1Zy5jZ2k/aWQ9ODQxNDkKKworICAgICAgICBSZXZpZXdlZCBieSBOT0JP
RFkgKE9PUFMhKS4KKworICAgICAgICBEZXNwaXRlIGhhdmluZyBXZWJLaXRXZWJWaWV3IGl0cyBv
d24gYmFja2luZyBidWZmZXIsIGNhbGxpbmcKKyAgICAgICAg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