GNOME Bugzilla – Bug 691874
window-actor: Speed up mask creation
Last modified: 2013-01-17 21:34:13 UTC
A set of typos made us try to union a bunch of bogus rects for every pixel.
Created attachment 233612 [details] [review] window-actor: Rename variable in scanning function "w" usually stands for "width", but here it stands for the end X bound, so we'll rename it to the more traditional "x2".
Created attachment 233613 [details] [review] window-actor: Speed up mask creation Due to a conditional error, meta_region_builder_add_rectangle was called on every single blank pixel, rather than at the end of spans. With the new rename, it's fairly clear to see the error. Fix the check to ensure that we no longer make extraneous calls to meta_region_builder_add_rectangle.
Review of attachment 233612 [details] [review]: OK
Review of attachment 233613 [details] [review]: Good catch
Attachment 233612 [details] pushed as 95f3bb3 - window-actor: Rename variable in scanning function Attachment 233613 [details] pushed as 5d12f00 - window-actor: Speed up mask creation