cogl-clip-stack: Don't convert rect clips to window clips
authorNeil Roberts <neil@linux.intel.com>
Tue, 9 Nov 2010 12:01:04 +0000 (12:01 +0000)
committerRobert Bragg <robert@linux.intel.com>
Fri, 3 Dec 2010 17:16:57 +0000 (17:16 +0000)
commitdc0506a1649bcea4997a68013927529451131712
tree8775773699339bbafd4e5a332bd478bd7fba92b1
parent22be07c3b5ec7d8d5e5e0447599425026cbb7bd8
cogl-clip-stack: Don't convert rect clips to window clips

Previously in cogl-clip-state.c when it detected that the current
modelview matrix is screen-aligned it would convert the clip entry to
a window clip. Instead of doing this cogl-clip-stack.c now contains
the detection and keeps the entry as a rectangle clip but marks that
it is entirely described by its scissor rect. When flusing the clip
stack it doesn't do anything extra for entries that have this mark
(because the clip will already been setup by the scissor). This is
needed so that we can still track the original rectangle coordinates
and modelview matrix to help detect when it would be faster to modify
the rectangle when adding it to the journal rather than having to
break up the batch to set the clip state.
clutter/cogl/cogl/cogl-clip-stack.c
clutter/cogl/cogl/cogl-clip-state.c