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

Issue 2224163005: Made shadows blurry (thru implementing variance mapping) (Closed)

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

Description

Made shadows blurry (thru implementing variance mapping) BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2224163005 Committed: https://skia.googlesource.com/skia/+/e6f5d5623160a69e1585f5121a3695092327dfe0

Patch Set 1 #

Total comments: 12

Patch Set 2 : Revamped blur type argument for shadows #

Patch Set 3 : made req changes #

Total comments: 29

Patch Set 4 : Made req changes; removed file that was accidentally added (sorrygit status) #

Patch Set 5 : removed extra comments #

Total comments: 57

Patch Set 6 : made the SkShadowType arg const& #

Patch Set 7 : Moved SkShadowType to SkCanvas #

Total comments: 12

Patch Set 8 : Made req changes; added some sliders #

Total comments: 9

Patch Set 9 : added shadowParams info to debug string #

Total comments: 3

Patch Set 10 : made req changes; needs to move blurimagefilter into core #

Total comments: 24

Patch Set 11 : made req changes. Talking to Mike... pending #

Patch Set 12 : rebased off master #

Total comments: 1

Patch Set 13 : rebased off master again! #

Total comments: 25

Patch Set 14 : made req changes #

Total comments: 6

Patch Set 15 : made req changes #

Patch Set 16 : fixed compile error for disabled shadowing #

Total comments: 1

Patch Set 17 : fixed unused param bug #

Patch Set 18 : made SkShadowParams.h #

Patch Set 19 : added shadowparams to gyp #

Patch Set 20 : Trying different include path #

Unified diffs Side-by-side diffs Delta from patch set Stats (+423 lines, -96 lines) Patch
M gm/shadowmaps.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +7 lines, -1 line 0 comments Download
M gyp/core.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +1 line, -0 lines 0 comments Download
M include/core/SkCanvas.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 4 chunks +26 lines, -5 lines 0 comments Download
M include/private/SkRecords.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -1 line 0 comments Download
A include/private/SkShadowParams.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +48 lines, -0 lines 0 comments Download
M samplecode/SampleShadowing.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 6 chunks +91 lines, -5 lines 0 comments Download
M src/core/SkCanvas.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 6 chunks +33 lines, -16 lines 0 comments Download
M src/core/SkLiteDL.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -1 line 0 comments Download
M src/core/SkLiteDL.cpp View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +8 lines, -5 lines 0 comments Download
M src/core/SkLiteRecorder.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -2 lines 0 comments Download
M src/core/SkLiteRecorder.cpp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -2 lines 0 comments Download
M src/core/SkPictureRecord.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -6 lines 0 comments Download
M src/core/SkPictureRecord.cpp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -1 line 0 comments Download
M src/core/SkRecordDraw.cpp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M src/core/SkRecorder.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -2 lines 0 comments Download
M src/core/SkRecorder.cpp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +5 lines, -4 lines 0 comments Download
M src/core/SkShadowShader.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M src/core/SkShadowShader.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 20 chunks +112 lines, -29 lines 0 comments Download
M src/utils/SkShadowPaintFilterCanvas.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -0 lines 0 comments Download
M src/utils/SkShadowPaintFilterCanvas.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +20 lines, -1 line 0 comments Download
M tools/debugger/SkDebugCanvas.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -2 lines 0 comments Download
M tools/debugger/SkDebugCanvas.cpp View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +6 lines, -4 lines 0 comments Download
M tools/debugger/SkDrawCommand.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +6 lines, -1 line 0 comments Download
M tools/debugger/SkDrawCommand.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +29 lines, -6 lines 0 comments Download

Messages

Total messages: 68 (27 generated)
vjiaoblack
4 years, 4 months ago (2016-08-09 21:31:01 UTC) #3
reed1
does all the new code need to live in canvas.cpp?
4 years, 4 months ago (2016-08-10 11:51:45 UTC) #5
vjiaoblack
On 2016/08/10 11:51:45, reed1 wrote: > does all the new code need to live in ...
4 years, 4 months ago (2016-08-10 14:05:39 UTC) #6
robertphillips
We're going to need words somewhere to: a) describe variance shadow mapping b) explain how ...
4 years, 4 months ago (2016-08-10 14:23:19 UTC) #7
vjiaoblack
https://codereview.chromium.org/2224163005/diff/1/src/core/SkCanvas.cpp File src/core/SkCanvas.cpp (right): https://codereview.chromium.org/2224163005/diff/1/src/core/SkCanvas.cpp#newcode3090 src/core/SkCanvas.cpp:3090: On 2016/08/10 14:23:18, robertphillips wrote: > Let's parameterize this ...
4 years, 4 months ago (2016-08-11 18:28:51 UTC) #8
jvanverth1
https://codereview.chromium.org/2224163005/diff/40001/gm/shadowmaps.cpp File gm/shadowmaps.cpp (right): https://codereview.chromium.org/2224163005/diff/40001/gm/shadowmaps.cpp#newcode108 gm/shadowmaps.cpp:108: SkShadowType fShType; Nit: it'd be clearer to me if ...
4 years, 4 months ago (2016-08-12 17:39:09 UTC) #9
vjiaoblack
https://codereview.chromium.org/2224163005/diff/40001/gm/shadowmaps.cpp File gm/shadowmaps.cpp (right): https://codereview.chromium.org/2224163005/diff/40001/gm/shadowmaps.cpp#newcode108 gm/shadowmaps.cpp:108: SkShadowType fShType; On 2016/08/12 17:39:08, jvanverth1 wrote: > Nit: ...
4 years, 4 months ago (2016-08-12 19:07:42 UTC) #10
jvanverth1
https://codereview.chromium.org/2224163005/diff/40001/src/core/SkShadowShader.cpp File src/core/SkShadowShader.cpp (right): https://codereview.chromium.org/2224163005/diff/40001/src/core/SkShadowShader.cpp#newcode340 src/core/SkShadowShader.cpp:340: // lightProb.c_str(), clamp.c_str(), clamp.c_str(), clamp.c_str()); On 2016/08/12 19:07:42, vjiaoblack ...
4 years, 4 months ago (2016-08-12 19:44:10 UTC) #11
vjiaoblack
4 years, 4 months ago (2016-08-12 20:16:10 UTC) #12
jvanverth1
https://codereview.chromium.org/2224163005/diff/80001/src/core/SkCanvas.cpp File src/core/SkCanvas.cpp (right): https://codereview.chromium.org/2224163005/diff/80001/src/core/SkCanvas.cpp#newcode3073 src/core/SkCanvas.cpp:3073: const SkShadowType sType) { const SkShadowType& sType. By using ...
4 years, 4 months ago (2016-08-15 15:14:43 UTC) #13
jvanverth1
https://codereview.chromium.org/2224163005/diff/80001/include/core/SkCanvas.h File include/core/SkCanvas.h (right): https://codereview.chromium.org/2224163005/diff/80001/include/core/SkCanvas.h#newcode1144 include/core/SkCanvas.h:1144: const SkShadowType sType); const & https://codereview.chromium.org/2224163005/diff/80001/include/core/SkCanvas.h#newcode1148 include/core/SkCanvas.h:1148: const SkShadowType ...
4 years, 4 months ago (2016-08-15 16:37:18 UTC) #14
vjiaoblack
https://codereview.chromium.org/2224163005/diff/80001/include/core/SkCanvas.h File include/core/SkCanvas.h (right): https://codereview.chromium.org/2224163005/diff/80001/include/core/SkCanvas.h#newcode1144 include/core/SkCanvas.h:1144: const SkShadowType sType); On 2016/08/15 16:37:16, jvanverth1 wrote: > ...
4 years, 4 months ago (2016-08-15 17:43:32 UTC) #15
vjiaoblack
4 years, 4 months ago (2016-08-15 17:57:11 UTC) #16
robertphillips
https://codereview.chromium.org/2224163005/diff/120001/include/core/SkCanvas.h File include/core/SkCanvas.h (right): https://codereview.chromium.org/2224163005/diff/120001/include/core/SkCanvas.h#newcode42 include/core/SkCanvas.h:42: Would SkShadowParams be clearer? dox! https://codereview.chromium.org/2224163005/diff/120001/samplecode/SampleShadowing.cpp File samplecode/SampleShadowing.cpp (right): ...
4 years, 4 months ago (2016-08-15 23:00:25 UTC) #17
vjiaoblack
https://codereview.chromium.org/2224163005/diff/120001/include/core/SkCanvas.h File include/core/SkCanvas.h (right): https://codereview.chromium.org/2224163005/diff/120001/include/core/SkCanvas.h#newcode42 include/core/SkCanvas.h:42: On 2016/08/15 23:00:24, robertphillips wrote: > Would SkShadowParams be ...
4 years, 4 months ago (2016-08-16 14:16:40 UTC) #18
vjiaoblack
4 years, 4 months ago (2016-08-16 15:07:08 UTC) #19
robertphillips
https://codereview.chromium.org/2224163005/diff/140001/gm/shadowmaps.cpp File gm/shadowmaps.cpp (right): https://codereview.chromium.org/2224163005/diff/140001/gm/shadowmaps.cpp#newcode82 gm/shadowmaps.cpp:82: fShadowParams.fMinVariance = 1024; fShadowType -> fType ? https://codereview.chromium.org/2224163005/diff/140001/gm/shadowmaps.cpp#newcode107 gm/shadowmaps.cpp:107: ...
4 years, 4 months ago (2016-08-16 15:58:17 UTC) #20
vjiaoblack
https://codereview.chromium.org/2224163005/diff/140001/gm/shadowmaps.cpp File gm/shadowmaps.cpp (right): https://codereview.chromium.org/2224163005/diff/140001/gm/shadowmaps.cpp#newcode82 gm/shadowmaps.cpp:82: fShadowParams.fMinVariance = 1024; On 2016/08/16 15:58:16, robertphillips wrote: > ...
4 years, 4 months ago (2016-08-16 16:48:22 UTC) #21
robertphillips
https://codereview.chromium.org/2224163005/diff/150024/samplecode/SampleShadowing.cpp File samplecode/SampleShadowing.cpp (right): https://codereview.chromium.org/2224163005/diff/150024/samplecode/SampleShadowing.cpp#newcode95 samplecode/SampleShadowing.cpp:95: fLightsChanged = true; "break;" here ? https://codereview.chromium.org/2224163005/diff/150024/src/core/SkCanvas.cpp File src/core/SkCanvas.cpp ...
4 years, 4 months ago (2016-08-16 19:36:10 UTC) #22
vjiaoblack
https://codereview.chromium.org/2224163005/diff/150024/samplecode/SampleShadowing.cpp File samplecode/SampleShadowing.cpp (right): https://codereview.chromium.org/2224163005/diff/150024/samplecode/SampleShadowing.cpp#newcode95 samplecode/SampleShadowing.cpp:95: fLightsChanged = true; On 2016/08/16 19:36:08, robertphillips wrote: > ...
4 years, 4 months ago (2016-08-17 12:58:57 UTC) #23
vjiaoblack
4 years, 4 months ago (2016-08-17 12:58:59 UTC) #24
robertphillips
https://codereview.chromium.org/2224163005/diff/150024/src/core/SkCanvas.cpp File src/core/SkCanvas.cpp (right): https://codereview.chromium.org/2224163005/diff/150024/src/core/SkCanvas.cpp#newcode3148 src/core/SkCanvas.cpp:3148: sk_sp<SkSurface> blurSurf(this->makeSurface(blurInfo)); On 2016/08/17 12:58:56, vjiaoblack wrote: > On ...
4 years, 4 months ago (2016-08-17 13:35:44 UTC) #25
vjiaoblack
On 2016/08/17 13:35:44, robertphillips wrote: > https://codereview.chromium.org/2224163005/diff/150024/src/core/SkCanvas.cpp > File src/core/SkCanvas.cpp (right): > > https://codereview.chromium.org/2224163005/diff/150024/src/core/SkCanvas.cpp#newcode3148 > ...
4 years, 4 months ago (2016-08-17 13:41:33 UTC) #26
robertphillips
https://codereview.chromium.org/2224163005/diff/210001/include/core/SkCanvas.h File include/core/SkCanvas.h (right): https://codereview.chromium.org/2224163005/diff/210001/include/core/SkCanvas.h#newcode62 include/core/SkCanvas.h:62: fType https://codereview.chromium.org/2224163005/diff/230001/include/core/SkCanvas.h File include/core/SkCanvas.h (right): https://codereview.chromium.org/2224163005/diff/230001/include/core/SkCanvas.h#newcode1125 include/core/SkCanvas.h:1125: * We ...
4 years, 4 months ago (2016-08-23 17:19:40 UTC) #27
vjiaoblack
https://codereview.chromium.org/2224163005/diff/230001/include/core/SkCanvas.h File include/core/SkCanvas.h (right): https://codereview.chromium.org/2224163005/diff/230001/include/core/SkCanvas.h#newcode1125 include/core/SkCanvas.h:1125: * We also support using variance shadow maps for ...
4 years, 4 months ago (2016-08-23 18:01:22 UTC) #29
robertphillips
lgtm + nits https://codereview.chromium.org/2224163005/diff/270001/include/core/SkCanvas.h File include/core/SkCanvas.h (right): https://codereview.chromium.org/2224163005/diff/270001/include/core/SkCanvas.h#newcode62 include/core/SkCanvas.h:62: This field is no longer called ...
4 years, 4 months ago (2016-08-24 17:34:37 UTC) #30
vjiaoblack
https://codereview.chromium.org/2224163005/diff/270001/include/core/SkCanvas.h File include/core/SkCanvas.h (right): https://codereview.chromium.org/2224163005/diff/270001/include/core/SkCanvas.h#newcode62 include/core/SkCanvas.h:62: On 2016/08/24 17:34:37, robertphillips wrote: > This field is ...
4 years, 4 months ago (2016-08-24 18:00:39 UTC) #31
vjiaoblack
https://codereview.chromium.org/2224163005/diff/270001/include/core/SkCanvas.h File include/core/SkCanvas.h (right): https://codereview.chromium.org/2224163005/diff/270001/include/core/SkCanvas.h#newcode62 include/core/SkCanvas.h:62: On 2016/08/24 17:34:37, robertphillips wrote: > This field is ...
4 years, 4 months ago (2016-08-24 18:00:39 UTC) #32
vjiaoblack
Heya, Brian! Could you take a look at this CL?
4 years, 4 months ago (2016-08-24 18:08:03 UTC) #36
vjiaoblack
4 years, 4 months ago (2016-08-24 18:17:57 UTC) #39
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/2224163005/310001
4 years, 4 months ago (2016-08-24 18:18:11 UTC) #42
commit-bot: I haz the power
Try jobs failed on following builders: skia_presubmit-Trybot on master.client.skia.fyi (JOB_FAILED, http://build.chromium.org/p/client.skia.fyi/builders/skia_presubmit-Trybot/builds/13045)
4 years, 4 months ago (2016-08-24 18:20:50 UTC) #44
bsalomon
https://codereview.chromium.org/2224163005/diff/310001/include/core/SkCanvas.h File include/core/SkCanvas.h (right): https://codereview.chromium.org/2224163005/diff/310001/include/core/SkCanvas.h#newcode65 include/core/SkCanvas.h:65: struct SkShadowParams { I'm not crazy about adding this ...
4 years, 4 months ago (2016-08-24 18:30:35 UTC) #45
vjiaoblack
4 years, 4 months ago (2016-08-24 18:52:49 UTC) #48
bsalomon
lgtm
4 years, 4 months ago (2016-08-24 19:24:24 UTC) #49
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/2224163005/350001
4 years, 4 months ago (2016-08-24 19:32:41 UTC) #52
commit-bot: I haz the power
Try jobs failed on following builders: Test-Ubuntu-GCC-ShuttleA-GPU-GTX660-x86_64-Release-GN-Trybot on master.client.skia (JOB_FAILED, http://build.chromium.org/p/client.skia/builders/Test-Ubuntu-GCC-ShuttleA-GPU-GTX660-x86_64-Release-GN-Trybot/builds/669)
4 years, 4 months ago (2016-08-24 19:35:48 UTC) #54
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/2224163005/370001
4 years, 4 months ago (2016-08-24 19:42:09 UTC) #57
commit-bot: I haz the power
Try jobs failed on following builders: Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared-Trybot on master.client.skia (JOB_FAILED, http://build.chromium.org/p/client.skia/builders/Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared-Trybot/builds/10997)
4 years, 4 months ago (2016-08-24 19:44:39 UTC) #59
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/2224163005/390001
4 years, 3 months ago (2016-08-25 13:03:09 UTC) #66
commit-bot: I haz the power
4 years, 3 months ago (2016-08-25 13:30:27 UTC) #68
Message was sent while issue was closed.
Committed patchset #20 (id:390001) as
https://skia.googlesource.com/skia/+/e6f5d5623160a69e1585f5121a3695092327dfe0

Powered by Google App Engine
This is Rietveld 408576698