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 647875 - Use Cairo to dump the pick buffers
Use Cairo to dump the pick buffers
Status: RESOLVED FIXED
Product: clutter
Classification: Platform
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: clutter-maint
clutter-maint
Depends on:
Blocks:
 
 
Reported: 2011-04-15 15:17 UTC by Emmanuele Bassi (:ebassi)
Modified: 2011-05-06 14:12 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
cairo-texture: Make the pixel order macro public (3.58 KB, patch)
2011-04-15 15:17 UTC, Emmanuele Bassi (:ebassi)
none Details | Review
stage: Use Cairo to dump the pick buffer (3.70 KB, patch)
2011-04-15 15:17 UTC, Emmanuele Bassi (:ebassi)
none Details | Review
cairo-texture: Make the pixel order macro public (3.83 KB, patch)
2011-04-18 16:47 UTC, Emmanuele Bassi (:ebassi)
committed Details | Review
stage: Use Cairo to dump the pick buffer (3.70 KB, patch)
2011-04-18 16:47 UTC, Emmanuele Bassi (:ebassi)
committed Details | Review

Description Emmanuele Bassi (:ebassi) 2011-04-15 15:17:22 UTC
Do not use GdkPixbuf, as all we want is pushing pixels to a PNG file.

This has a couple of added bonuses:

  • removes the last lonely use of GdkPixbuf from Clutter
  • simplifies the code and reduces the memory management
Comment 1 Emmanuele Bassi (:ebassi) 2011-04-15 15:17:24 UTC
Created attachment 186027 [details] [review]
cairo-texture: Make the pixel order macro public

It stands to reason that any piece of code using Cairo and Cogl at the
same time, and dealing with texture data, will want to use the same
logic Clutter uses to determine the compatible pixel format between the
two.
Comment 2 Emmanuele Bassi (:ebassi) 2011-04-15 15:17:27 UTC
Created attachment 186028 [details] [review]
stage: Use Cairo to dump the pick buffer

Do not use GdkPixbuf just for getting image data down into a PNG; Cairo
is perfectly capable of doing the same, at least just for debugging
purposes.
Comment 3 Emmanuele Bassi (:ebassi) 2011-04-18 16:47:19 UTC
Created attachment 186214 [details] [review]
cairo-texture: Make the pixel order macro public

It stands to reason that any piece of code using Cairo and Cogl at the
same time, and dealing with texture data, will want to use the same
logic Clutter uses to determine the compatible pixel format between the
two.
Comment 4 Emmanuele Bassi (:ebassi) 2011-04-18 16:47:21 UTC
Created attachment 186215 [details] [review]
stage: Use Cairo to dump the pick buffer

Do not use GdkPixbuf just for getting image data down into a PNG; Cairo
is perfectly capable of doing the same, at least just for debugging
purposes.
Comment 5 Emmanuele Bassi (:ebassi) 2011-05-06 14:11:55 UTC
Attachment 186214 [details] pushed as 3a071a4 - cairo-texture: Make the pixel order macro public
Attachment 186215 [details] pushed as 00f2a39 - stage: Use Cairo to dump the pick buffer