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

Issue 2248493002: raster shadows (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

Patch Set 1 #

Total comments: 12

Patch Set 2 : made req changes #

Total comments: 4

Patch Set 3 : made req changes - some #

Total comments: 6

Patch Set 4 : made req changes #

Total comments: 4

Patch Set 5 : allocated pixmaps with new[] #

Total comments: 14

Patch Set 6 : made req changes #

Total comments: 8

Patch Set 7 : made req changes #

Total comments: 12

Patch Set 8 : made req changes #

Total comments: 2

Patch Set 9 : made req change #

Total comments: 2

Patch Set 10 : compressed shadow-map indexing code #

Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -20 lines) Patch
M src/core/SkShadowShader.cpp View 1 2 3 4 5 6 7 8 9 3 chunks +56 lines, -20 lines 0 comments Download

Messages

Total messages: 32 (9 generated)
vjiaoblack
None of my other CL's are based of this, and this piece of code is ...
4 years, 4 months ago (2016-08-13 14:59:32 UTC) #4
jvanverth1
https://codereview.chromium.org/2248493002/diff/1/src/core/SkShadowShader.cpp File src/core/SkShadowShader.cpp (right): https://codereview.chromium.org/2248493002/diff/1/src/core/SkShadowShader.cpp#newcode564 src/core/SkShadowShader.cpp:564: int xOffset = round(light.dir().fX * (SkScalar) SkColorGetB(povDepthColor)); SkScalarRoundToInt instead ...
4 years, 4 months ago (2016-08-16 00:57:18 UTC) #5
vjiaoblack
https://codereview.chromium.org/2248493002/diff/1/src/core/SkShadowShader.cpp File src/core/SkShadowShader.cpp (right): https://codereview.chromium.org/2248493002/diff/1/src/core/SkShadowShader.cpp#newcode564 src/core/SkShadowShader.cpp:564: int xOffset = round(light.dir().fX * (SkScalar) SkColorGetB(povDepthColor)); On 2016/08/16 ...
4 years, 4 months ago (2016-08-17 13:25:02 UTC) #6
vjiaoblack
4 years, 4 months ago (2016-08-17 13:25:04 UTC) #7
jvanverth1
https://codereview.chromium.org/2248493002/diff/20001/src/core/SkShadowShader.cpp File src/core/SkShadowShader.cpp (right): https://codereview.chromium.org/2248493002/diff/20001/src/core/SkShadowShader.cpp#newcode546 src/core/SkShadowShader.cpp:546: SkPixmap* shPixels[SkShadowShader::kMaxNonAmbientLights]; If you just put the Pixmap at ...
4 years, 4 months ago (2016-08-17 15:42:43 UTC) #8
vjiaoblack
https://codereview.chromium.org/2248493002/diff/20001/src/core/SkShadowShader.cpp File src/core/SkShadowShader.cpp (right): https://codereview.chromium.org/2248493002/diff/20001/src/core/SkShadowShader.cpp#newcode546 src/core/SkShadowShader.cpp:546: SkPixmap* shPixels[SkShadowShader::kMaxNonAmbientLights]; On 2016/08/17 15:42:43, jvanverth1 wrote: > If ...
4 years, 4 months ago (2016-08-18 15:33:28 UTC) #9
robertphillips
https://codereview.chromium.org/2248493002/diff/40001/src/core/SkShadowShader.cpp File src/core/SkShadowShader.cpp (right): https://codereview.chromium.org/2248493002/diff/40001/src/core/SkShadowShader.cpp#newcode545 src/core/SkShadowShader.cpp:545: Let's (you, me, Jim & maybe Mike) talk about ...
4 years, 4 months ago (2016-08-18 17:33:16 UTC) #10
vjiaoblack
https://codereview.chromium.org/2248493002/diff/40001/src/core/SkShadowShader.cpp File src/core/SkShadowShader.cpp (right): https://codereview.chromium.org/2248493002/diff/40001/src/core/SkShadowShader.cpp#newcode545 src/core/SkShadowShader.cpp:545: On 2016/08/18 17:33:16, robertphillips wrote: > Let's (you, me, ...
4 years, 4 months ago (2016-08-24 14:34:06 UTC) #11
robertphillips
https://codereview.chromium.org/2248493002/diff/60001/src/core/SkShadowShader.cpp File src/core/SkShadowShader.cpp (right): https://codereview.chromium.org/2248493002/diff/60001/src/core/SkShadowShader.cpp#newcode511 src/core/SkShadowShader.cpp:511: Since you're densely packing the pixmaps, let's add a ...
4 years, 4 months ago (2016-08-24 14:48:54 UTC) #12
vjiaoblack
https://codereview.chromium.org/2248493002/diff/60001/src/core/SkShadowShader.cpp File src/core/SkShadowShader.cpp (right): https://codereview.chromium.org/2248493002/diff/60001/src/core/SkShadowShader.cpp#newcode511 src/core/SkShadowShader.cpp:511: On 2016/08/24 14:48:53, robertphillips wrote: > Since you're densely ...
4 years, 3 months ago (2016-08-29 15:45:48 UTC) #13
robertphillips
https://codereview.chromium.org/2248493002/diff/80001/src/core/SkShadowShader.cpp File src/core/SkShadowShader.cpp (right): https://codereview.chromium.org/2248493002/diff/80001/src/core/SkShadowShader.cpp#newcode64 src/core/SkShadowShader.cpp:64: int fNonAmbLightCnt; This should be SkPixmap* https://codereview.chromium.org/2248493002/diff/80001/src/core/SkShadowShader.cpp#newcode651 src/core/SkShadowShader.cpp:651: fShadowMapPixels ...
4 years, 3 months ago (2016-08-29 18:03:40 UTC) #14
vjiaoblack
https://codereview.chromium.org/2248493002/diff/80001/src/core/SkShadowShader.cpp File src/core/SkShadowShader.cpp (right): https://codereview.chromium.org/2248493002/diff/80001/src/core/SkShadowShader.cpp#newcode64 src/core/SkShadowShader.cpp:64: int fNonAmbLightCnt; On 2016/08/29 18:03:40, robertphillips wrote: > This ...
4 years, 3 months ago (2016-08-29 18:22:08 UTC) #15
robertphillips
https://codereview.chromium.org/2248493002/diff/100001/src/core/SkShadowShader.cpp File src/core/SkShadowShader.cpp (right): https://codereview.chromium.org/2248493002/diff/100001/src/core/SkShadowShader.cpp#newcode651 src/core/SkShadowShader.cpp:651: Only allocate fNonAmbLightCnt https://codereview.chromium.org/2248493002/diff/100001/src/core/SkShadowShader.cpp#newcode670 src/core/SkShadowShader.cpp:670: We should probably delete ...
4 years, 3 months ago (2016-08-29 19:21:36 UTC) #16
vjiaoblack
https://codereview.chromium.org/2248493002/diff/100001/src/core/SkShadowShader.cpp File src/core/SkShadowShader.cpp (right): https://codereview.chromium.org/2248493002/diff/100001/src/core/SkShadowShader.cpp#newcode651 src/core/SkShadowShader.cpp:651: On 2016/08/29 19:21:36, robertphillips wrote: > Only allocate fNonAmbLightCnt ...
4 years, 3 months ago (2016-08-29 19:56:39 UTC) #17
robertphillips
https://codereview.chromium.org/2248493002/diff/120001/src/core/SkShadowShader.cpp File src/core/SkShadowShader.cpp (right): https://codereview.chromium.org/2248493002/diff/120001/src/core/SkShadowShader.cpp#newcode726 src/core/SkShadowShader.cpp:726: You don't really need to SkIntToScalars here https://codereview.chromium.org/2248493002/diff/120001/src/core/SkShadowShader.cpp#newcode729 src/core/SkShadowShader.cpp:729: ...
4 years, 3 months ago (2016-08-30 12:32:26 UTC) #18
vjiaoblack
https://codereview.chromium.org/2248493002/diff/120001/src/core/SkShadowShader.cpp File src/core/SkShadowShader.cpp (right): https://codereview.chromium.org/2248493002/diff/120001/src/core/SkShadowShader.cpp#newcode726 src/core/SkShadowShader.cpp:726: On 2016/08/30 12:32:26, robertphillips wrote: > You don't really ...
4 years, 3 months ago (2016-08-30 12:48:42 UTC) #19
robertphillips
https://codereview.chromium.org/2248493002/diff/140001/src/core/SkShadowShader.cpp File src/core/SkShadowShader.cpp (right): https://codereview.chromium.org/2248493002/diff/140001/src/core/SkShadowShader.cpp#newcode762 src/core/SkShadowShader.cpp:762: Just assign to totalColor rather than initializing to 0.0f ...
4 years, 3 months ago (2016-08-30 12:55:08 UTC) #20
vjiaoblack
https://codereview.chromium.org/2248493002/diff/140001/src/core/SkShadowShader.cpp File src/core/SkShadowShader.cpp (right): https://codereview.chromium.org/2248493002/diff/140001/src/core/SkShadowShader.cpp#newcode762 src/core/SkShadowShader.cpp:762: On 2016/08/30 12:55:08, robertphillips wrote: > Just assign to ...
4 years, 3 months ago (2016-08-30 12:58:49 UTC) #21
robertphillips
https://codereview.chromium.org/2248493002/diff/160001/src/core/SkShadowShader.cpp File src/core/SkShadowShader.cpp (right): https://codereview.chromium.org/2248493002/diff/160001/src/core/SkShadowShader.cpp#newcode727 src/core/SkShadowShader.cpp:727: Why aren't the following 6 lines just: int shX ...
4 years, 3 months ago (2016-08-30 13:08:49 UTC) #22
vjiaoblack
https://codereview.chromium.org/2248493002/diff/160001/src/core/SkShadowShader.cpp File src/core/SkShadowShader.cpp (right): https://codereview.chromium.org/2248493002/diff/160001/src/core/SkShadowShader.cpp#newcode727 src/core/SkShadowShader.cpp:727: On 2016/08/30 13:08:49, robertphillips wrote: > Why aren't the ...
4 years, 3 months ago (2016-08-30 13:22:06 UTC) #23
robertphillips
lgtm
4 years, 3 months ago (2016-08-30 13:27:42 UTC) #24
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/2248493002/180001
4 years, 3 months ago (2016-08-30 13:54:16 UTC) #30
commit-bot: I haz the power
4 years, 3 months ago (2016-08-30 14:13:07 UTC) #32
Message was sent while issue was closed.
Committed patchset #10 (id:180001) as
https://skia.googlesource.com/skia/+/babc697ae8f7cb2191b049f446bf44d029376d69

Powered by Google App Engine
This is Rietveld 408576698