[Wayland-bugs] [Bug 762120] [Wayland] Black content when using testfilechooser auto completer

gtk+ (GNOME Bugzilla) bugzilla at gnome.org
Tue Feb 16 22:03:57 UTC 2016


https://bugzilla.gnome.org/show_bug.cgi?id=762120

Ray Strode [halfline] <rstrode at redhat.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #321340|none                        |accepted-commit_now
             status|                            |

--- Comment #4 from Ray Strode [halfline] <rstrode at redhat.com> ---
Review of attachment 321340:

so this looks fine to me, but it does nicely illustrate an interesting point: a
commit operation could be one or more different things.  I wonder if a cleaner
approach than adding another boolean, would be to change the pending_commit
variable to take a bitfield of commit flags instead?  Then you could set
pending_commit |= PENDING_DAMAGE; pending_commit |= PENDING_BUFFER_ATTACHMENT;
pending_commit |= SUBSURFACE_SET_POSITION etc etc.

and inside on_frame_clock_after_paint you could do

if (pending_commit & PENDING_DAMAGE)
    read_back_cairo_surface (...)
...

 if (pending_commit & PENDING_BUFFER_ATTACHMENT) 
   impl->committed_cairo_surface = ...

just an idea, what you've got seems fine.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/wayland-bugs/attachments/20160216/689f64a3/attachment.html>


More information about the wayland-bugs mailing list