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

Issue 2237493002: Added PointLights to SkLights::Light (Closed)

Created:
4 years, 4 months ago by vjiaoblack
Modified:
4 years, 4 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: 4

Patch Set 2 : made req changes #

Patch Set 3 : changed a vec3 to a point3 #

Total comments: 12

Patch Set 4 : added lighting serialization #

Total comments: 14

Patch Set 5 : Added SkLights.cpp #

Total comments: 7

Patch Set 6 : made req changes #

Total comments: 6

Patch Set 7 : made req changes #

Patch Set 8 : disable shadowing #

Patch Set 9 : removed extra new lines #

Patch Set 10 : had to change to match master #

Patch Set 11 : edited file to fit API calls #

Patch Set 12 : fixed serialization bug #

Unified diffs Side-by-side diffs Delta from patch set Stats (+164 lines, -144 lines) Patch
M gm/lightingshader.cpp View 1 1 chunk +5 lines, -5 lines 0 comments Download
M gm/lightingshader2.cpp View 1 1 chunk +3 lines, -3 lines 0 comments Download
M gm/lightingshaderbevel.cpp View 1 1 chunk +3 lines, -3 lines 0 comments Download
M gm/shadowmaps.cpp View 1 1 chunk +5 lines, -5 lines 0 comments Download
M gyp/core.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M include/core/SkLights.h View 1 2 3 4 5 6 5 chunks +39 lines, -21 lines 0 comments Download
M samplecode/SampleLighting.cpp View 1 1 chunk +2 lines, -2 lines 0 comments Download
M samplecode/SampleLitAtlas.cpp View 1 1 chunk +3 lines, -2 lines 0 comments Download
M samplecode/SampleShadowing.cpp View 1 2 chunks +17 lines, -14 lines 0 comments Download
M src/core/SkCanvas.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -2 lines 0 comments Download
M src/core/SkLightingShader.cpp View 1 2 3 4 2 chunks +2 lines, -36 lines 0 comments Download
A src/core/SkLights.cpp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +77 lines, -0 lines 0 comments Download
M src/core/SkShadowShader.cpp View 1 2 3 4 2 chunks +2 lines, -48 lines 0 comments Download
M tests/SerializationTest.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 35 (17 generated)
vjiaoblack
4 years, 4 months ago (2016-08-10 15:42:16 UTC) #3
robertphillips
Where is the serialization stuff? https://codereview.chromium.org/2237493002/diff/1/gm/lightingshader.cpp File gm/lightingshader.cpp (right): https://codereview.chromium.org/2237493002/diff/1/gm/lightingshader.cpp#newcode50 gm/lightingshader.cpp:50: I don't think we ...
4 years, 4 months ago (2016-08-10 16:34:37 UTC) #4
vjiaoblack
4 years, 4 months ago (2016-08-10 17:36:29 UTC) #5
robertphillips
It looks like the lighting serialization is duplicated in two places. Shall we centralize it? ...
4 years, 4 months ago (2016-08-10 17:48:39 UTC) #6
vjiaoblack
https://codereview.chromium.org/2237493002/diff/40001/include/core/SkLights.h File include/core/SkLights.h (right): https://codereview.chromium.org/2237493002/diff/40001/include/core/SkLights.h#newcode41 include/core/SkLights.h:41: static Light MakeAmbient(const SkColor3f& color) { On 2016/08/10 17:48:39, ...
4 years, 4 months ago (2016-08-11 14:27:23 UTC) #7
robertphillips
https://codereview.chromium.org/2237493002/diff/60001/include/core/SkLights.h File include/core/SkLights.h (right): https://codereview.chromium.org/2237493002/diff/60001/include/core/SkLights.h#newcode12 include/core/SkLights.h:12: #include "../private/SkTArray.h" Do we need to include SkImage or ...
4 years, 4 months ago (2016-08-11 14:56:18 UTC) #8
vjiaoblack
https://codereview.chromium.org/2237493002/diff/60001/include/core/SkLights.h File include/core/SkLights.h (right): https://codereview.chromium.org/2237493002/diff/60001/include/core/SkLights.h#newcode12 include/core/SkLights.h:12: #include "../private/SkTArray.h" On 2016/08/11 14:56:18, robertphillips wrote: > Do ...
4 years, 4 months ago (2016-08-11 19:18:54 UTC) #9
robertphillips
https://codereview.chromium.org/2237493002/diff/80001/include/core/SkLights.h File include/core/SkLights.h (left): https://codereview.chromium.org/2237493002/diff/80001/include/core/SkLights.h#oldcode114 include/core/SkLights.h:114: int numLights() const { Why out line these ? ...
4 years, 4 months ago (2016-08-12 13:34:49 UTC) #10
robertphillips
https://codereview.chromium.org/2237493002/diff/80001/include/core/SkLights.h File include/core/SkLights.h (left): https://codereview.chromium.org/2237493002/diff/80001/include/core/SkLights.h#oldcode114 include/core/SkLights.h:114: int numLights() const { Why out line these ? ...
4 years, 4 months ago (2016-08-12 13:34:49 UTC) #11
vjiaoblack
https://codereview.chromium.org/2237493002/diff/80001/include/core/SkLights.h File include/core/SkLights.h (right): https://codereview.chromium.org/2237493002/diff/80001/include/core/SkLights.h#newcode98 include/core/SkLights.h:98: On 2016/08/12 13:34:48, robertphillips wrote: > const SkColor3f& color, ...
4 years, 4 months ago (2016-08-12 14:12:10 UTC) #12
robertphillips
lgtm + nits https://codereview.chromium.org/2237493002/diff/100001/include/core/SkLights.h File include/core/SkLights.h (right): https://codereview.chromium.org/2237493002/diff/100001/include/core/SkLights.h#newcode109 include/core/SkLights.h:109: Don't need SkLights:: here https://codereview.chromium.org/2237493002/diff/100001/include/core/SkLights.h#newcode115 include/core/SkLights.h:115: ...
4 years, 4 months ago (2016-08-12 14:27:49 UTC) #13
vjiaoblack
https://codereview.chromium.org/2237493002/diff/100001/include/core/SkLights.h File include/core/SkLights.h (right): https://codereview.chromium.org/2237493002/diff/100001/include/core/SkLights.h#newcode109 include/core/SkLights.h:109: On 2016/08/12 14:27:49, robertphillips wrote: > Don't need SkLights:: ...
4 years, 4 months ago (2016-08-12 14:56:46 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/2237493002/160001
4 years, 4 months ago (2016-08-12 14:57:13 UTC) #17
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/12518)
4 years, 4 months ago (2016-08-12 14:59:04 UTC) #19
vjiaoblack
Public API call! need specific reviewer (bsalomon)
4 years, 4 months ago (2016-08-12 15:36:49 UTC) #27
bsalomon
api lgtm
4 years, 4 months ago (2016-08-12 15:52:26 UTC) #30
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/2237493002/220001
4 years, 4 months ago (2016-08-12 18:09:15 UTC) #33
commit-bot: I haz the power
4 years, 4 months ago (2016-08-12 18:38:51 UTC) #35
Message was sent while issue was closed.
Committed patchset #12 (id:220001) as
https://skia.googlesource.com/skia/+/772b5ee446d7545eec4ca7d6dc9d75461e2a9c38

Powered by Google App Engine
This is Rietveld 408576698