restore sRGB memset optimization
authorMike Klein <mtklein@chromium.org>
Wed, 30 Nov 2016 14:55:08 +0000 (09:55 -0500)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Wed, 30 Nov 2016 15:44:36 +0000 (15:44 +0000)
commit94528981c8f668280fd56aea75fd720078f4ea3c
treed6b19e7fa7483aa9552f96239a840b8fa2c42741
parentc5619cd1702759990f278ed87c3654a292f044d1
restore sRGB memset optimization

https://skia-review.googlesource.com/c/5275/ removed it, and perf noticed.

This is obviously not very pretty or scalable.  I plan to folow up with a more thorough and principled way to do this sort of constant-color + invariant-stage == constant-color optimization.

BUG=skia:6013

CQ_INCLUDE_TRYBOTS=skia.primary:Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD

Change-Id: I377386f67e66169cce6e0cb0831f3b7154496840
Reviewed-on: https://skia-review.googlesource.com/5338
Commit-Queue: Mike Klein <mtklein@chromium.org>
Reviewed-by: Mike Klein <mtklein@chromium.org>
src/opts/SkRasterPipeline_opts.h