DescriptionMake gMask_00FF00FF a constant
This is to optimize SkAlphaMulQ() in PIC mode. With the visibility=default
symbol the constant is not known at compile time (and is not a constant), but
instead is fetched through a double indirection through GOT. The function is
quite hot on one of the chromium benchmarks:
rasterize_and_record_micro.key_silk_cases.
This change replaces the symbol with a compile-time constant. As a bonus the
variable is not exported from the dynamic library, i. e. a cleaner library
interface.
See specific performance improvements on Android here:
http://goo.gl/iMuTDt
Committed: http://code.google.com/p/skia/source/detail?r=14696
Patch Set 1 #
Total comments: 2
Patch Set 2 : replace enum constant with the literal #
Total comments: 8
Patch Set 3 : const mask no-static #
Messages
Total messages: 16 (0 generated)
|