Lines Matching refs:Restore
20 // Save-NoDraw-Restore sequences better than we can here.
47 // Turns the logical NoOp Save and Restore in Save-Draw*-Restore patterns into actual NoOps.
51 Is<Restore> >
56 record->replace<NoOp>(end-1); // Restore
118 // Turns logical no-op Save-[non-drawing command]*-Restore patterns into actual no-ops.
120 // Star matches greedily, so we also have to exclude Save and Restore.
121 // Nested SaveLayers need to be excluded, or we'll match their Restore!
125 Is<Restore>,
127 Is<Restore> >
131 // The entire span between Save and Restore (inclusively) does nothing.
146 // For some SaveLayer-[drawing command]-Restore patterns, merge the SaveLayer's alpha into the
147 // draw, and no-op the SaveLayer and Restore.
149 typedef Pattern3<Is<SaveLayer>, IsDraw, Is<Restore> > Pattern;
175 record->replace<NoOp>(saveLayerIndex+2); // Restore
190 Restore
191 Restore
192 Restore
196 Is<Restore>, Is<Restore>, Is<Restore> > Pattern;
224 record->replace<NoOp>(saveLayerIndex + 6); // Restore