DescriptionFix incorrect use of the SK_RESTRICT macro in SkColorMatrixFilter, and re-enable the colormatrix GM test.
MSC was generating incorrect code, assuming that the "result" variable inside the processing functions and the "result" variable in filterSpan*() do not alias, which they do. I removed the use of SK_RESTRICT from the latter.
I've also removed it from asColorMatrix() and setup(). Although I didn't notice any pointer aliasing in those functions today, performance is not critical and someone might inadvertently introduce aliasing in the future.
Patch Set 1 #
MessagesTotal messages: 5
|