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

Issue 2319003003: Update SampleAndroidShadows to use algorithm closer to Android OpenGL (Closed)

Created:
4 years, 3 months ago by jvanverth1
Modified:
4 years, 3 months ago
CC:
reviews_skia.org
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Update SampleAndroidShadows to use algorithm closer to Android OpenGL Includes: * Update light position to be at a similar distance to Android OS * Scale spot shadows correctly * Compute stroke shapes and radii correctly * Allow for larger blur radius for shadows GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2319003003 TBR=reed@google.com NOTRY=true NOTREECHECKS=true Committed: https://skia.googlesource.com/skia/+/d99858ad46ca2c3b5c38061be8b006b25d24c6e0

Patch Set 1 #

Total comments: 4

Patch Set 2 : Address comments #

Patch Set 3 : Fix up for high objects #

Patch Set 4 : Fix translation for spot shadow #

Patch Set 5 : Add largerBlur param to allow Android to keep workin #

Total comments: 1

Patch Set 6 : Address comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+132 lines, -116 lines) Patch
M include/effects/SkGaussianEdgeShader.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M samplecode/SampleAndroidShadows.cpp View 1 2 3 4 11 chunks +88 lines, -100 lines 0 comments Download
M src/effects/SkGaussianEdgeShader.cpp View 1 2 3 4 5 7 chunks +43 lines, -15 lines 0 comments Download

Messages

Total messages: 28 (17 generated)
jvanverth1
4 years, 3 months ago (2016-09-07 17:38:06 UTC) #4
herb_g
https://codereview.chromium.org/2319003003/diff/1/samplecode/SampleAndroidShadows.cpp File samplecode/SampleAndroidShadows.cpp (right): https://codereview.chromium.org/2319003003/diff/1/samplecode/SampleAndroidShadows.cpp#newcode194 samplecode/SampleAndroidShadows.cpp:194: SkASSERT(pad < 64); how about: uint16_t iRadius = (uint16_t)(radius ...
4 years, 3 months ago (2016-09-07 18:22:00 UTC) #6
jvanverth1
https://codereview.chromium.org/2319003003/diff/1/samplecode/SampleAndroidShadows.cpp File samplecode/SampleAndroidShadows.cpp (right): https://codereview.chromium.org/2319003003/diff/1/samplecode/SampleAndroidShadows.cpp#newcode194 samplecode/SampleAndroidShadows.cpp:194: SkASSERT(pad < 64); On 2016/09/07 18:22:00, herb_g wrote: > ...
4 years, 3 months ago (2016-09-08 18:12:35 UTC) #8
jvanverth1
Adding Rob.
4 years, 3 months ago (2016-09-09 14:02:03 UTC) #10
herb_g
lgtm
4 years, 3 months ago (2016-09-09 15:35:29 UTC) #11
jvanverth1
I've done some more updates, so PTAL. This makes the shader compatible with the current ...
4 years, 3 months ago (2016-09-09 20:56:00 UTC) #13
herb_g
lgtm https://codereview.chromium.org/2319003003/diff/80001/src/effects/SkGaussianEdgeShader.cpp File src/effects/SkGaussianEdgeShader.cpp (right): https://codereview.chromium.org/2319003003/diff/80001/src/effects/SkGaussianEdgeShader.cpp#newcode25 src/effects/SkGaussianEdgeShader.cpp:25: Add a TODO about removing largerBlur when the ...
4 years, 3 months ago (2016-09-09 21:06:48 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2319003003/100001
4 years, 3 months ago (2016-09-12 13:28:20 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2319003003/100001
4 years, 3 months ago (2016-09-12 13:53:36 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2319003003/100001
4 years, 3 months ago (2016-09-12 14:50:08 UTC) #26
commit-bot: I haz the power
4 years, 3 months ago (2016-09-12 14:51:07 UTC) #28
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://skia.googlesource.com/skia/+/d99858ad46ca2c3b5c38061be8b006b25d24c6e0

Powered by Google App Engine
This is Rietveld 408576698