diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2009-01-01 16:55:08 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2009-01-02 09:53:27 +0000 |
commit | c601f308430f4d33929109fb9170b9322edca3c6 (patch) | |
tree | 8edd0c06a6d5674e3e12488db002be8cd7648eda /util | |
parent | fb3522f33a565576002595bf03e07f6c8b16a471 (diff) |
[cairo] Early return if we attempt to set the same colour.
Profiling a silly video renderer that called set-source; rectangle; fill;
for each pixel, we can shave 5% off the cairo overhead by introducing an
early return if we attempt to reset the current colour.
Diffstat (limited to 'util')
0 files changed, 0 insertions, 0 deletions