DescriptionMove paints to the front of draw structs.
The order of arguments in these structs is arbitrary, so we might as well arrange them to optimize something. Putting the paints at the front means the logic to find the paint is a lot more concise: it's usually just ptr+0, or *(ptr+0) when the SkPaint is optional.
This considerably reduces the size of the jump table in IsDraw::operator().
BUG=skia:2378
Committed: http://code.google.com/p/skia/source/detail?r=14634
Patch Set 1 #Patch Set 2 : dumper too #Patch Set 3 : rebase #
Messages
Total messages: 5 (0 generated)
|