GNOME Bugzilla – Bug 735638
Adapt to Mutter background changes
Last modified: 2014-09-03 17:46:44 UTC
The rewrite of Mutter's background code (see bug 735637) requires corresponding changes here - we no longer need to layer multiple MetaBackgroundActors together. The general strategy is that a BackgroundSource object is created per GSettings schema, and keeps either one Background/MetaBackground pair, or, for animation, a Background/Metabackground pair for each monitor.
Created attachment 284754 [details] [review] Adapt to Mutter background changes
Some performance numbers 1600x1200 resolution, perf-background.xml # Time to redraw the main view, full screen haswell: mainViewRedrawTime 2285 => 2155 llvmpipe: mainViewRedrawTime 13376 => 12602 # Time to redraw the overview, full screen, 5 windows haswell: overviewRedrawTime 5873 => 3700 llvmpipe: overviewRedrawTime 60280 => 21414 2560x1440 resolution, "solid" background from control center (solid is solid + noise texture) haswell: mainViewRedrawTime 3297 => 3119 haswell: overviewRedrawTime: 6962 => 4904
Created attachment 285214 [details] [review] Clean up objects MetaBackgroundActor vs. BackgroundActor This is a cleanup patch based on IRC comments from Jasper, what it basically does is: * Rename BackgroundActor to BackgroundActorDelegate * Consistently refer to background actors as backgroundActor and not background * Refer to delegates as 'delegate' or 'backgroundActor._delegate' and never as backgroundActor. It also fixes up property lists to the style they were in before.
Created attachment 285269 [details] [review] Remove BackgroundActor delegate class This is a cleanup patch based on IRC comments from Jasper, what it basically does is: * Remove BackgroundActor, use (newly added) properties on MetaBackgroundActor for tweening. * Fix a race where a background change during the tween between backgrounds would leave things in an inconsistent state and could potentially leak backgrounds. * Consistently refer to background actors as backgroundActor and not background. (Patch also fixes up property lists to the style they were in before)
Squashed and pushed. Attachment 284754 [details] pushed as 650dea0 - Adapt to Mutter background changes