diff options
author | aleksandar.stojiljkovic <aleksandar.stojiljkovic@intel.com> | 2016-03-08 11:18:21 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-03-08 11:18:22 -0800 |
commit | 88cb82246a5dc141cb9f49a3b9187abb515cd49d (patch) | |
tree | 16818fc2a41341dfd0ceb477355878cfcd8227a1 /bench/nanobench.h | |
parent | 810f77fb9c21a8f2e3373ff92ef302e22b585e4c (diff) |
4377: drawVertices crashes when shader+colorfilter in the paint
Fix memory corruption that is result of static_casting SkFilterShaderContext*
to SkTriColorShaderContext* and then changing it's state using setup()
SkTriColorShader and it's Context could be wrapped by Compose, 3DShader and
SkFilterShader, but the link SkTriColorShaderContext -> SkTriColorShader
(fShader) always remain - so this way, data about triangle is propagated.
BUG=4377
Didn't add new unit test - it would be redundant since the GM vertices update here: https://codereview.chromium.org/1361173003/ is covering the bug. With this patch it passes.
Review URL: https://codereview.chromium.org/1431713003
Diffstat (limited to 'bench/nanobench.h')
0 files changed, 0 insertions, 0 deletions