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 653585 - stage: Add clutter_stage_read_pixels_async
stage: Add clutter_stage_read_pixels_async
Status: RESOLVED DUPLICATE of bug 653590
Product: clutter
Classification: Platform
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: clutter-maint
clutter-maint
: 653586 653587 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2011-06-28 19:46 UTC by Robert Bragg
Modified: 2011-06-29 09:19 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Robert Bragg 2011-06-28 19:46:07 UTC
This deprecates clutter_stage_read_pixels since there are numerous
issues with that interface, including lacking of format choice and
difficult to support semantics considering read_pixel requests that
happen mid-scene.

As a replacement this adds clutter_stage_read_pixels_async which serves
a similar purpose but instead of synchronously painting the stage it
queues a clipped redraw of the region of interest and after the stage is
next painted the region is read and a user given callback is called to
notify that their pixel data is ready.

The new API allows control over the pixel format that pixels are
returned in, there is the potential for us to optimize this api to use
PBOs in the future to completely avoid blocking the mainloop while
waiting for the reads to complete, we avoid redundant scenegraph
traversals and avoid tricky semantics when reading mid-scene.
Comment 1 Fabio Durán Verdugo 2011-06-28 23:16:13 UTC
*** Bug 653587 has been marked as a duplicate of this bug. ***
Comment 2 Fabio Durán Verdugo 2011-06-28 23:16:44 UTC
*** Bug 653586 has been marked as a duplicate of this bug. ***
Comment 3 Emmanuele Bassi (:ebassi) 2011-06-29 09:19:22 UTC

*** This bug has been marked as a duplicate of bug 653590 ***