Optimize saveLayer() when the clip flag is set.

This speeds up applications, especially Launcher.
10 files changed