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 662962 - Beginning of porting to cairo
Beginning of porting to cairo
Status: RESOLVED OBSOLETE
Product: mutter
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: mutter-maint
mutter-maint
Depends on:
Blocks:
 
 
Reported: 2011-10-28 18:43 UTC by Jasper St. Pierre (not reading bugmail)
Modified: 2012-05-17 12:39 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
theme: Remove our own gradient stuff (52.27 KB, patch)
2011-10-28 18:43 UTC, Jasper St. Pierre (not reading bugmail)
none Details | Review
theme: Remove unused RECTANGLE code (1.07 KB, patch)
2011-10-28 18:43 UTC, Jasper St. Pierre (not reading bugmail)
none Details | Review
theme: Remove our own gradient stuff (52.07 KB, patch)
2011-10-28 18:50 UTC, Jasper St. Pierre (not reading bugmail)
none Details | Review
theme: Remove our own gradient stuff (52.07 KB, patch)
2011-10-29 23:14 UTC, Jasper St. Pierre (not reading bugmail)
none Details | Review
Consolidate unused ops. (1.83 KB, patch)
2011-10-29 23:14 UTC, Jasper St. Pierre (not reading bugmail)
none Details | Review
theme: Use cairo for drawing ICON (4.00 KB, patch)
2011-10-29 23:15 UTC, Jasper St. Pierre (not reading bugmail)
none Details | Review
theme: Use cairo for drawing uncolorized IMAGEs (2.68 KB, patch)
2011-10-29 23:15 UTC, Jasper St. Pierre (not reading bugmail)
none Details | Review
theme: Remove unused RECTANGLE code (1.08 KB, patch)
2012-03-01 06:05 UTC, Jasper St. Pierre (not reading bugmail)
none Details | Review
theme: Remove our own gradient stuff (52.19 KB, patch)
2012-03-01 06:05 UTC, Jasper St. Pierre (not reading bugmail)
none Details | Review
theme: Consolidate unused ops (1.83 KB, patch)
2012-03-01 06:05 UTC, Jasper St. Pierre (not reading bugmail)
none Details | Review
theme: Properly indent code (1.64 KB, patch)
2012-03-01 06:05 UTC, Jasper St. Pierre (not reading bugmail)
none Details | Review
theme: Use cairo for drawing ICON (4.00 KB, patch)
2012-03-01 06:05 UTC, Jasper St. Pierre (not reading bugmail)
none Details | Review
theme: Use cairo for TINT operations with alpha (3.68 KB, patch)
2012-03-01 06:05 UTC, Jasper St. Pierre (not reading bugmail)
none Details | Review
theme: Use cairo for drawing uncolorized IMAGEs (2.08 KB, patch)
2012-03-01 06:06 UTC, Jasper St. Pierre (not reading bugmail)
none Details | Review
theme: Remove COLORIZE feature of images (17.38 KB, patch)
2012-03-01 06:06 UTC, Jasper St. Pierre (not reading bugmail)
none Details | Review
theme: Remove draw_op_draw/draw_op_draw_with_style (3.13 KB, patch)
2012-03-01 06:06 UTC, Jasper St. Pierre (not reading bugmail)
none Details | Review
theme: Remove dead code (8.74 KB, patch)
2012-03-01 06:06 UTC, Jasper St. Pierre (not reading bugmail)
none Details | Review
theme: Replace char array element comparisons with strncmp (2.62 KB, patch)
2012-03-01 06:06 UTC, Jasper St. Pierre (not reading bugmail)
none Details | Review
theme: Remove bogus comment (1.13 KB, patch)
2012-03-01 06:06 UTC, Jasper St. Pierre (not reading bugmail)
none Details | Review
theme: Remove unused RECTANGLE code (1.08 KB, patch)
2012-03-13 04:53 UTC, Jasper St. Pierre (not reading bugmail)
none Details | Review
theme: Remove our own gradient stuff (52.19 KB, patch)
2012-03-13 04:53 UTC, Jasper St. Pierre (not reading bugmail)
none Details | Review
theme: Consolidate unused ops (1.83 KB, patch)
2012-03-13 04:53 UTC, Jasper St. Pierre (not reading bugmail)
none Details | Review
theme: Properly indent code (5.09 KB, patch)
2012-03-13 04:53 UTC, Jasper St. Pierre (not reading bugmail)
none Details | Review
theme: Use cairo for drawing ICON (4.00 KB, patch)
2012-03-13 04:53 UTC, Jasper St. Pierre (not reading bugmail)
none Details | Review
theme: Use cairo for TINT operations with alpha (3.68 KB, patch)
2012-03-13 04:53 UTC, Jasper St. Pierre (not reading bugmail)
none Details | Review
theme: Use cairo for drawing uncolorized IMAGEs (2.08 KB, patch)
2012-03-13 04:54 UTC, Jasper St. Pierre (not reading bugmail)
none Details | Review
theme: Remove COLORIZE feature of images (17.43 KB, patch)
2012-03-13 04:54 UTC, Jasper St. Pierre (not reading bugmail)
none Details | Review
theme: Replace char array element comparisons with strncmp (2.62 KB, patch)
2012-03-13 04:54 UTC, Jasper St. Pierre (not reading bugmail)
none Details | Review
theme: Remove bogus comment (1.13 KB, patch)
2012-03-13 04:54 UTC, Jasper St. Pierre (not reading bugmail)
none Details | Review
theme: Remove unused entry points (6.83 KB, patch)
2012-03-13 04:54 UTC, Jasper St. Pierre (not reading bugmail)
none Details | Review
theme: Remove dead code (8.74 KB, patch)
2012-03-13 04:54 UTC, Jasper St. Pierre (not reading bugmail)
none Details | Review
theme: Make certain implementation functions internal to theme.c (4.15 KB, patch)
2012-03-13 04:54 UTC, Jasper St. Pierre (not reading bugmail)
none Details | Review
theme: Remove 'widget' parameter from draw_frame_with_style API (7.34 KB, patch)
2012-03-13 04:54 UTC, Jasper St. Pierre (not reading bugmail)
none Details | Review
theme: Remove unused RECTANGLE code (1.06 KB, patch)
2012-04-09 07:34 UTC, Jasper St. Pierre (not reading bugmail)
none Details | Review
theme: Remove our own gradient stuff (52.69 KB, patch)
2012-04-09 07:34 UTC, Jasper St. Pierre (not reading bugmail)
none Details | Review
theme: Consolidate unused ops (1.83 KB, patch)
2012-04-09 07:34 UTC, Jasper St. Pierre (not reading bugmail)
none Details | Review
theme: Properly indent code (5.08 KB, patch)
2012-04-09 07:34 UTC, Jasper St. Pierre (not reading bugmail)
none Details | Review
theme: Use cairo for drawing ICON (3.87 KB, patch)
2012-04-09 07:34 UTC, Jasper St. Pierre (not reading bugmail)
none Details | Review
theme: Use cairo for TINT operations with alpha (3.68 KB, patch)
2012-04-09 07:34 UTC, Jasper St. Pierre (not reading bugmail)
none Details | Review
theme: Use cairo for drawing uncolorized IMAGEs (2.08 KB, patch)
2012-04-09 07:34 UTC, Jasper St. Pierre (not reading bugmail)
none Details | Review
theme: Remove COLORIZE feature of images (17.43 KB, patch)
2012-04-09 07:34 UTC, Jasper St. Pierre (not reading bugmail)
none Details | Review
theme: Replace char array element comparisons with strncmp (2.62 KB, patch)
2012-04-09 07:35 UTC, Jasper St. Pierre (not reading bugmail)
none Details | Review
theme: Remove bogus comment (1.11 KB, patch)
2012-04-09 07:35 UTC, Jasper St. Pierre (not reading bugmail)
none Details | Review
theme: Remove unused entry points (6.81 KB, patch)
2012-04-09 07:35 UTC, Jasper St. Pierre (not reading bugmail)
none Details | Review
theme: Remove dead code (8.64 KB, patch)
2012-04-09 07:35 UTC, Jasper St. Pierre (not reading bugmail)
none Details | Review
theme: Make certain implementation functions internal to theme.c (4.15 KB, patch)
2012-04-09 07:35 UTC, Jasper St. Pierre (not reading bugmail)
none Details | Review
theme: Remove 'widget' parameter from draw_frame_with_style API (7.34 KB, patch)
2012-04-09 07:35 UTC, Jasper St. Pierre (not reading bugmail)
none Details | Review

Description Jasper St. Pierre (not reading bugmail) 2011-10-28 18:43:36 UTC
see patches. I had to remove a feature: alpha specs for images, icons and tints. I tried looking around to various themes and didn't see this feature used in most of them, so I'm assuming it's safe to remove
Comment 1 Jasper St. Pierre (not reading bugmail) 2011-10-28 18:43:39 UTC
Created attachment 200200 [details] [review]
theme: Remove our own gradient stuff

Part one of porting to cairo. This requires breaking as few features in the
theme format that aren't quite used that often, like the alpha_spec on tint,
image and icon.
Comment 2 Jasper St. Pierre (not reading bugmail) 2011-10-28 18:43:41 UTC
Created attachment 200201 [details] [review]
theme: Remove unused RECTANGLE code
Comment 3 Jasper St. Pierre (not reading bugmail) 2011-10-28 18:50:15 UTC
Created attachment 200202 [details] [review]
theme: Remove our own gradient stuff

Part one of porting to cairo. This requires breaking as few features in the
theme format that aren't quite used that often, like the alpha_spec on tint,
image and icon.



Excuse me, the "flipped" comment is wrong.
Comment 4 Jasper St. Pierre (not reading bugmail) 2011-10-29 23:14:29 UTC
Created attachment 200265 [details] [review]
theme: Remove our own gradient stuff

Part one of porting to cairo. This requires breaking as few features in the
theme format that aren't quite used that often, like the alpha_spec on tint,
image and icon.
Comment 5 Jasper St. Pierre (not reading bugmail) 2011-10-29 23:14:38 UTC
Created attachment 200266 [details] [review]
Consolidate unused ops.
Comment 6 Jasper St. Pierre (not reading bugmail) 2011-10-29 23:15:08 UTC
Created attachment 200267 [details] [review]
theme: Use cairo for drawing ICON

There's probably a better way to do draw_image. It's late at night and I
can't do math at this hour.
Comment 7 Jasper St. Pierre (not reading bugmail) 2011-10-29 23:15:16 UTC
Created attachment 200268 [details] [review]
theme: Use cairo for drawing uncolorized IMAGEs
Comment 8 Jasper St. Pierre (not reading bugmail) 2012-03-01 06:05:23 UTC
Created attachment 208747 [details] [review]
theme: Remove unused RECTANGLE code

Rebased onto master.
Comment 9 Jasper St. Pierre (not reading bugmail) 2012-03-01 06:05:32 UTC
Created attachment 208748 [details] [review]
theme: Remove our own gradient stuff

Part one of porting to cairo. This requires removing support for a seldomly
used feature in the theme format - alpha gradients on tint, icon and image.
Grepping through gnome-themes-standard and searching for code, I couldn't
find any usage of this feature, so I consider it safe to remove.
Comment 10 Jasper St. Pierre (not reading bugmail) 2012-03-01 06:05:37 UTC
Created attachment 208749 [details] [review]
theme: Consolidate unused ops
Comment 11 Jasper St. Pierre (not reading bugmail) 2012-03-01 06:05:46 UTC
Created attachment 208750 [details] [review]
theme: Properly indent code

s/tabs/spaces/
Comment 12 Jasper St. Pierre (not reading bugmail) 2012-03-01 06:05:52 UTC
Created attachment 208751 [details] [review]
theme: Use cairo for drawing ICON
Comment 13 Jasper St. Pierre (not reading bugmail) 2012-03-01 06:05:56 UTC
Created attachment 208752 [details] [review]
theme: Use cairo for TINT operations with alpha
Comment 14 Jasper St. Pierre (not reading bugmail) 2012-03-01 06:06:01 UTC
Created attachment 208753 [details] [review]
theme: Use cairo for drawing uncolorized IMAGEs
Comment 15 Jasper St. Pierre (not reading bugmail) 2012-03-01 06:06:06 UTC
Created attachment 208754 [details] [review]
theme: Remove COLORIZE feature of images

From a quick code search and grep of gnome-themes-standard, none of
the themes that I inspected used this feature. Since it's the last
thing that uses a lot of old legacy GdkPixbuf code, I'd rather just
consider the feature unsupported at this point and clean up everything
I need to.
Comment 16 Jasper St. Pierre (not reading bugmail) 2012-03-01 06:06:10 UTC
Created attachment 208755 [details] [review]
theme: Remove draw_op_draw/draw_op_draw_with_style

They were unused. Kill them.
Comment 17 Jasper St. Pierre (not reading bugmail) 2012-03-01 06:06:13 UTC
Created attachment 208756 [details] [review]
theme: Remove dead code

While the comment claims that we may want to keep this around
for optimization purposes, the operations are raw bitmap operations
that would be cleaner done in cairo.
Comment 18 Jasper St. Pierre (not reading bugmail) 2012-03-01 06:06:17 UTC
Created attachment 208757 [details] [review]
theme: Replace char array element comparisons with strncmp
Comment 19 Jasper St. Pierre (not reading bugmail) 2012-03-01 06:06:20 UTC
Created attachment 208758 [details] [review]
theme: Remove bogus comment
Comment 20 André Klapper 2012-03-07 12:58:08 UTC
Jasper: Will this get in after branching for gnome-3-4, or what are the plans?
Comment 21 Jasper St. Pierre (not reading bugmail) 2012-03-07 16:23:36 UTC
I don't know. I just made the patches. It's up to Owen to review them, I guess.
Comment 22 Jasper St. Pierre (not reading bugmail) 2012-03-13 04:53:44 UTC
Created attachment 209564 [details] [review]
theme: Remove unused RECTANGLE code
Comment 23 Jasper St. Pierre (not reading bugmail) 2012-03-13 04:53:48 UTC
Created attachment 209565 [details] [review]
theme: Remove our own gradient stuff

Part one of porting to cairo. This requires removing support for a seldomly
used feature in the theme format - alpha gradients on tint, icon and image.
Grepping through gnome-themes-standard and searching for code, I couldn't
find any usage of this feature, so I consider it safe to remove.
Comment 24 Jasper St. Pierre (not reading bugmail) 2012-03-13 04:53:51 UTC
Created attachment 209566 [details] [review]
theme: Consolidate unused ops
Comment 25 Jasper St. Pierre (not reading bugmail) 2012-03-13 04:53:54 UTC
Created attachment 209567 [details] [review]
theme: Properly indent code

s/tabs/spaces/
Comment 26 Jasper St. Pierre (not reading bugmail) 2012-03-13 04:53:56 UTC
Created attachment 209568 [details] [review]
theme: Use cairo for drawing ICON
Comment 27 Jasper St. Pierre (not reading bugmail) 2012-03-13 04:53:59 UTC
Created attachment 209569 [details] [review]
theme: Use cairo for TINT operations with alpha
Comment 28 Jasper St. Pierre (not reading bugmail) 2012-03-13 04:54:02 UTC
Created attachment 209570 [details] [review]
theme: Use cairo for drawing uncolorized IMAGEs
Comment 29 Jasper St. Pierre (not reading bugmail) 2012-03-13 04:54:05 UTC
Created attachment 209571 [details] [review]
theme: Remove COLORIZE feature of images

From a quick code search and grep of gnome-themes-standard, none of
the themes that I inspected used this feature. Since it's the last
thing that uses a lot of old legacy GdkPixbuf code, I'd rather just
consider the feature unsupported at this point and clean up everything
I need to.
Comment 30 Jasper St. Pierre (not reading bugmail) 2012-03-13 04:54:08 UTC
Created attachment 209572 [details] [review]
theme: Replace char array element comparisons with strncmp
Comment 31 Jasper St. Pierre (not reading bugmail) 2012-03-13 04:54:11 UTC
Created attachment 209573 [details] [review]
theme: Remove bogus comment
Comment 32 Jasper St. Pierre (not reading bugmail) 2012-03-13 04:54:14 UTC
Created attachment 209574 [details] [review]
theme: Remove unused entry points

meta_draw_op_draw, meta_draw_op_draw_with_style, meta_draw_op_list_draw,
and meta_frame_style_draw were all unused
Comment 33 Jasper St. Pierre (not reading bugmail) 2012-03-13 04:54:17 UTC
Created attachment 209575 [details] [review]
theme: Remove dead code

While the comment claims that we may want to keep this around
for optimization purposes, the operations are raw bitmap operations
that would be cleaner done in cairo.
Comment 34 Jasper St. Pierre (not reading bugmail) 2012-03-13 04:54:20 UTC
Created attachment 209576 [details] [review]
theme: Make certain implementation functions internal to theme.c
Comment 35 Jasper St. Pierre (not reading bugmail) 2012-03-13 04:54:24 UTC
Created attachment 209577 [details] [review]
theme: Remove 'widget' parameter from draw_frame_with_style API

The only use of the widget parameter was being passed around - there was
nothing else using it.
Comment 36 Jasper St. Pierre (not reading bugmail) 2012-04-09 07:34:33 UTC
Created attachment 211617 [details] [review]
theme: Remove unused RECTANGLE code
Comment 37 Jasper St. Pierre (not reading bugmail) 2012-04-09 07:34:38 UTC
Created attachment 211618 [details] [review]
theme: Remove our own gradient stuff

Part one of porting to cairo. This requires removing support for a seldomly
used feature in the theme format - alpha gradients on tint, icon and image.
Grepping through gnome-themes-standard and searching for code, I couldn't
find any usage of this feature, so I consider it safe to remove.
Comment 38 Jasper St. Pierre (not reading bugmail) 2012-04-09 07:34:41 UTC
Created attachment 211619 [details] [review]
theme: Consolidate unused ops
Comment 39 Jasper St. Pierre (not reading bugmail) 2012-04-09 07:34:43 UTC
Created attachment 211620 [details] [review]
theme: Properly indent code

s/tabs/spaces/
Comment 40 Jasper St. Pierre (not reading bugmail) 2012-04-09 07:34:46 UTC
Created attachment 211621 [details] [review]
theme: Use cairo for drawing ICON
Comment 41 Jasper St. Pierre (not reading bugmail) 2012-04-09 07:34:50 UTC
Created attachment 211622 [details] [review]
theme: Use cairo for TINT operations with alpha
Comment 42 Jasper St. Pierre (not reading bugmail) 2012-04-09 07:34:53 UTC
Created attachment 211623 [details] [review]
theme: Use cairo for drawing uncolorized IMAGEs
Comment 43 Jasper St. Pierre (not reading bugmail) 2012-04-09 07:34:57 UTC
Created attachment 211624 [details] [review]
theme: Remove COLORIZE feature of images

From a quick code search and grep of gnome-themes-standard, none of
the themes that I inspected used this feature. Since it's the last
thing that uses a lot of old legacy GdkPixbuf code, I'd rather just
consider the feature unsupported at this point and clean up everything
I need to.
Comment 44 Jasper St. Pierre (not reading bugmail) 2012-04-09 07:35:01 UTC
Created attachment 211625 [details] [review]
theme: Replace char array element comparisons with strncmp
Comment 45 Jasper St. Pierre (not reading bugmail) 2012-04-09 07:35:04 UTC
Created attachment 211626 [details] [review]
theme: Remove bogus comment
Comment 46 Jasper St. Pierre (not reading bugmail) 2012-04-09 07:35:06 UTC
Created attachment 211627 [details] [review]
theme: Remove unused entry points

meta_draw_op_draw, meta_draw_op_draw_with_style, meta_draw_op_list_draw,
and meta_frame_style_draw were all unused
Comment 47 Jasper St. Pierre (not reading bugmail) 2012-04-09 07:35:10 UTC
Created attachment 211628 [details] [review]
theme: Remove dead code

While the comment claims that we may want to keep this around
for optimization purposes, the operations are raw bitmap operations
that would be cleaner done in cairo.
Comment 48 Jasper St. Pierre (not reading bugmail) 2012-04-09 07:35:13 UTC
Created attachment 211629 [details] [review]
theme: Make certain implementation functions internal to theme.c
Comment 49 Jasper St. Pierre (not reading bugmail) 2012-04-09 07:35:16 UTC
Created attachment 211630 [details] [review]
theme: Remove 'widget' parameter from draw_frame_with_style API

The only use of the widget parameter was being passed around - there was
nothing else using it.
Comment 50 Jasper St. Pierre (not reading bugmail) 2012-04-09 07:37:07 UTC
Comment on attachment 208755 [details] [review]
theme: Remove draw_op_draw/draw_op_draw_with_style

The changes here are in "theme: Use cairo for drawing ICON" and "theme: Remove our own gradient stuff". The former cleans up the draw_image method a little bit from suggestions by Company, and the latter cleans up the gradient code and makes gradient rendering match the original code a lot more.
Comment 51 Jasper St. Pierre (not reading bugmail) 2012-05-17 12:39:44 UTC
Not going to happen. Obsoleted by CSS rework.