DescriptionMaintain SkPaint in GraphicsContextState.
The aim is to avoid SkPaint setup time for the common case of filling and stroking shapes. We can't entirely do that, as some of the paint content is not controlled by GraphicsContextState (such as text or temporary paint state set for specific draw operations).
Perf tests on the record_and_rasterize micro-bench indicate a 1-3% average improvement on record times.
BUG=343240
R=adamk@chromium.org, fmalita@chromium.org, senorblanco@chromium.org
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=168536
Patch Set 1 #Patch Set 2 : Fixed alpha, still work in progress #Patch Set 3 : Ready for review. #
Total comments: 19
Patch Set 4 : Improved based on review #
Total comments: 2
Patch Set 5 : Nuked pointless const #
Total comments: 7
Patch Set 6 : A couple more optimizations. #Messages
Total messages: 22 (0 generated)
|