After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 698794 - Use new clutter_stage_set_paint_callback() function for after-paint notification
Use new clutter_stage_set_paint_callback() function for after-paint notification
Status: RESOLVED FIXED
Product: mutter
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: mutter-maint
mutter-maint
Depends on: 698783
Blocks:
 
 
Reported: 2013-04-24 20:53 UTC by Owen Taylor
Modified: 2013-06-03 17:22 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Use new clutter_stage_set_paint_callback() function for after-paint notification (2.73 KB, patch)
2013-04-24 20:53 UTC, Owen Taylor
committed Details | Review

Description Owen Taylor 2013-04-24 20:53:54 UTC
Commit 4f2bb583bf8c changed things so that the compositor used
clutter_threads_add_repaint_func_full (CLUTTER_REPAINT_FLAGS_POST_PAINT
to get after-paint notification and send _NET_WM_FRAME_DRAWN, but this
doesn't actually work, since Clutter will already have blocked for
VBlank before calling post-paint functions.

The result is that frame synced toolkits like GTK 3.8 will normally
only be able to draw every other frame.

Since ::paint doesn't work either, a new function
clutter_stage_set_paint_callback() has been added to Clutter
(and will be included in the 1.14 branch)
Comment 1 Owen Taylor 2013-04-24 20:53:56 UTC
Created attachment 242368 [details] [review]
Use new clutter_stage_set_paint_callback() function for after-paint notification
Comment 2 Jasper St. Pierre (not reading bugmail) 2013-05-06 17:08:24 UTC
Review of attachment 242368 [details] [review]:

OK.
Comment 3 drago01 2013-05-26 08:29:08 UTC
The clutter patch is in 1.14.4 ... any reason not to push this?
Comment 4 Owen Taylor 2013-06-03 17:22:51 UTC
Attachment 242368 [details] pushed as 1ad1357 - Use new clutter_stage_set_paint_callback() function for after-paint notification