Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save WillsB3/4730955 to your computer and use it in GitHub Desktop.
Save WillsB3/4730955 to your computer and use it in GitHub Desktop.
Run this from your terminal to have GPU composited layers drawn red. Great for debugging CSS3 animations and ensuring they are being rendered by the GPU. Tested on iOS Simulator 6.0 (Earlier Versions stored the Simulator outside of XCode.app)
iOS Simulator (iPhone/iPad)
CA_COLOR_OPAQUE=1 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone\ Simulator.app/Contents/MacOS/iPhone\ Simulator
Safari (Mac OSX)
CA_COLOR_OPAQUE=1 /Applications/Safari.app/Contents/MacOS/Safari
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment