GNOME Bugzilla – Bug 634779
MetaWindowGroup: further optimize paints by using current scissor
Last modified: 2010-11-18 18:59:39 UTC
When in a partial stage paint, we can combine that with the visibility information in MetaWindowGroup to further eliminate unneeded drawing. Since there is no current Clutter API to access the current clip, drop to using GL directly.
Created attachment 174406 [details] [review] MetaWindowGroup: further optimize paints by using current scissor
Comment on attachment 174406 [details] [review] MetaWindowGroup: further optimize paints by using current scissor I don't really know GL at all but it all looks right based on some quick skimming of docs. Can you explain in the comment that the GL scissor box is the COGL clip region?
Pushed with comment improved to: /* When doing a partial stage paint, Clutter will set the GL scissor * box to the clip rectangle for the partial repaint. We combine the screen * rectangle with the scissor box to get the region we need to * paint. (Strangely, the scissor box sometimes seems to be bigger * than the stage ... Clutter should probably be clampimg) */ Which is hopefully more explanator. Attachment 174406 [details] pushed as 5963990 - MetaWindowGroup: further optimize paints by using current scissor