Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(75)

Issue 1431713003: drawVertices crashes when shader+colorfilter in the paint (Closed)

Created:
5 years, 1 month ago by aleksandar.stojiljkovic
Modified:
4 years, 9 months ago
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

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. Committed: https://skia.googlesource.com/skia/+/88cb82246a5dc141cb9f49a3b9187abb515cd49d

Patch Set 1 #

Patch Set 2 : Skip rendering when matrices are not valid - as original code did it that way #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -28 lines) Patch
M src/core/SkDraw.cpp View 1 7 chunks +43 lines, -28 lines 1 comment Download

Messages

Total messages: 13 (6 generated)
aleksandar.stojiljkovic
5 years, 1 month ago (2015-11-03 23:37:46 UTC) #3
aleksandar.stojiljkovic
5 years, 1 month ago (2015-11-04 13:17:29 UTC) #4
aleksandar_stojiljkovic
https://codereview.chromium.org/1431713003/diff/20001/src/core/SkDraw.cpp File src/core/SkDraw.cpp (right): https://codereview.chromium.org/1431713003/diff/20001/src/core/SkDraw.cpp#newcode2006 src/core/SkDraw.cpp:2006: fSetup = setup(set->pts, set->colors, set->state->f0, set->state->f1, set->state->f2); Reed, what ...
5 years, 1 month ago (2015-11-10 08:58:51 UTC) #6
reed1
Only 4 months later ... but I think this looks good. Testing now...
4 years, 9 months ago (2016-03-08 18:18:48 UTC) #8
reed1
lgtm
4 years, 9 months ago (2016-03-08 19:02:24 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1431713003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1431713003/20001
4 years, 9 months ago (2016-03-08 19:02:26 UTC) #11
commit-bot: I haz the power
4 years, 9 months ago (2016-03-08 19:18:24 UTC) #13
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://skia.googlesource.com/skia/+/88cb82246a5dc141cb9f49a3b9187abb515cd49d

Powered by Google App Engine
This is Rietveld 408576698