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

Issue 2298603004: added point light attenuations to raster (Closed)

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

Description

Patch Set 1 #

Total comments: 12

Patch Set 2 : made req changes #

Total comments: 1

Patch Set 3 : added i back to light direction calculation #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -2 lines) Patch
M src/core/SkShadowShader.cpp View 1 2 2 chunks +21 lines, -2 lines 0 comments Download

Messages

Total messages: 19 (8 generated)
vjiaoblack
It's hella slow though - moved the sample fps from around 33 to 55
4 years, 3 months ago (2016-08-31 13:29:51 UTC) #3
vjiaoblack
On 2016/08/31 13:29:51, vjiaoblack wrote: > It's hella slow though - moved the sample fps ...
4 years, 3 months ago (2016-08-31 13:30:08 UTC) #4
robertphillips
https://codereview.chromium.org/2298603004/diff/1/src/core/SkShadowShader.cpp File src/core/SkShadowShader.cpp (right): https://codereview.chromium.org/2298603004/diff/1/src/core/SkShadowShader.cpp#newcode768 src/core/SkShadowShader.cpp:768: Maybe: } else { SkASSERT(light.type() == SkLights::Light::kPoint_LightType); ? https://codereview.chromium.org/2298603004/diff/1/src/core/SkShadowShader.cpp#newcode769 ...
4 years, 3 months ago (2016-08-31 13:44:27 UTC) #5
vjiaoblack
https://codereview.chromium.org/2298603004/diff/1/src/core/SkShadowShader.cpp File src/core/SkShadowShader.cpp (right): https://codereview.chromium.org/2298603004/diff/1/src/core/SkShadowShader.cpp#newcode768 src/core/SkShadowShader.cpp:768: On 2016/08/31 13:44:27, robertphillips wrote: > Maybe: > > ...
4 years, 3 months ago (2016-08-31 13:53:28 UTC) #6
jvanverth1
Using forward differencing to compute the vector to the light might be slightly faster. I.e., ...
4 years, 3 months ago (2016-08-31 17:18:23 UTC) #7
vjiaoblack
https://codereview.chromium.org/2298603004/diff/1/src/core/SkShadowShader.cpp File src/core/SkShadowShader.cpp (right): https://codereview.chromium.org/2298603004/diff/1/src/core/SkShadowShader.cpp#newcode779 src/core/SkShadowShader.cpp:779: SkScalar attenuationValue = dist / light.intensity(); On 2016/08/31 17:18:23, ...
4 years, 3 months ago (2016-08-31 17:58:29 UTC) #8
robertphillips
https://codereview.chromium.org/2298603004/diff/20001/src/core/SkShadowShader.cpp File src/core/SkShadowShader.cpp (right): https://codereview.chromium.org/2298603004/diff/20001/src/core/SkShadowShader.cpp#newcode775 src/core/SkShadowShader.cpp:775: isn't there supposed to be a "+i" somewhere in ...
4 years, 3 months ago (2016-08-31 18:02:26 UTC) #9
vjiaoblack
4 years, 3 months ago (2016-08-31 18:11:19 UTC) #10
robertphillips
lgtm
4 years, 3 months ago (2016-08-31 18:13:50 UTC) #11
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/2298603004/40001
4 years, 3 months ago (2016-08-31 18:47:36 UTC) #17
commit-bot: I haz the power
4 years, 3 months ago (2016-08-31 18:48:32 UTC) #19
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://skia.googlesource.com/skia/+/bcdc405ea07e44e4bd54b6cdcade300161a330a3

Powered by Google App Engine
This is Rietveld 408576698