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

Issue 1291783003: Update SkLightingShader to support rotation (Closed)

Created:
5 years, 4 months ago by robertphillips
Modified:
5 years, 4 months ago
Reviewers:
jvanverth1, bsalomon, reed1
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Update SkLightingShader to support rotation This also: makes the SkLightingShader handle normal maps where the rects aren't aligned between the diffuse and normal maps. adds a light aggregating class (Lights) to SkLightingShader (along with a Builder nested class). Split out of https://codereview.chromium.org/1261433009/ (Add SkCanvas::drawLitAtlas call) Committed: https://skia.googlesource.com/skia/+/45b59ed6e4e231814dbdb9f707b3d2a7ee50de84 Committed: https://skia.googlesource.com/skia/+/2f0dbc761a626473c19db7de561c7072b12953c5

Patch Set 1 #

Patch Set 2 : clean up #

Patch Set 3 : update #

Patch Set 4 : update #

Total comments: 6

Patch Set 5 : Address code review issues #

Patch Set 6 : Update to ToT #

Patch Set 7 : Fix compilation complaint #

Patch Set 8 : Fix name collision #

Patch Set 9 : Fix gyp file #

Unified diffs Side-by-side diffs Delta from patch set Stats (+617 lines, -1115 lines) Patch
M gm/lightingshader.cpp View 1 2 3 5 chunks +65 lines, -19 lines 0 comments Download
M gyp/SampleApp.gyp View 1 2 chunks +4 lines, -4 lines 0 comments Download
M gyp/core.gypi View 1 2 3 4 5 6 7 3 chunks +6 lines, -1 line 0 comments Download
M gyp/effects.gypi View 3 chunks +0 lines, -4 lines 0 comments Download
M gyp/tools.gyp View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
A + include/core/SkPoint3.h View 1 2 3 4 5 6 7 1 chunk +16 lines, -0 lines 0 comments Download
M include/effects/SkLightingImageFilter.h View 1 2 3 4 5 6 7 2 chunks +4 lines, -4 lines 0 comments Download
D include/effects/SkPoint3.h View 1 chunk +0 lines, -108 lines 0 comments Download
M samplecode/SampleLighting.cpp View 1 2 3 4 chunks +22 lines, -15 lines 0 comments Download
A src/core/SkLight.h View 1 1 chunk +56 lines, -0 lines 0 comments Download
A + src/core/SkLightingShader.h View 1 2 3 4 2 chunks +49 lines, -7 lines 0 comments Download
A + src/core/SkLightingShader.cpp View 1 2 3 4 5 6 19 chunks +287 lines, -137 lines 0 comments Download
A + src/core/SkPoint3.cpp View 0 chunks +-1 lines, --1 lines 0 comments Download
M src/effects/SkLightingImageFilter.cpp View 1 2 3 4 5 6 7 59 chunks +106 lines, -88 lines 0 comments Download
D src/effects/SkLightingShader.h View 1 chunk +0 lines, -59 lines 0 comments Download
D src/effects/SkLightingShader.cpp View 1 2 3 4 5 1 chunk +0 lines, -588 lines 0 comments Download
D src/effects/SkPoint3.cpp View 1 chunk +0 lines, -80 lines 0 comments Download
M src/ports/SkGlobalInitialization_chromium.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/ports/SkGlobalInitialization_default.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 30 (15 generated)
robertphillips
5 years, 4 months ago (2015-08-18 18:10:29 UTC) #3
reed1
lgtm
5 years, 4 months ago (2015-08-19 12:57:56 UTC) #4
jvanverth1
Just a few comments. https://codereview.chromium.org/1291783003/diff/60001/src/core/SkLightingShader.cpp File src/core/SkLightingShader.cpp (right): https://codereview.chromium.org/1291783003/diff/60001/src/core/SkLightingShader.cpp#newcode216 src/core/SkLightingShader.cpp:216: fpb->codeAppend("normal = normalize(m*normal);"); It's more ...
5 years, 4 months ago (2015-08-19 13:57:48 UTC) #5
robertphillips
https://codereview.chromium.org/1291783003/diff/60001/src/core/SkLightingShader.cpp File src/core/SkLightingShader.cpp (right): https://codereview.chromium.org/1291783003/diff/60001/src/core/SkLightingShader.cpp#newcode216 src/core/SkLightingShader.cpp:216: fpb->codeAppend("normal = normalize(m*normal);"); I've added a TODO. https://codereview.chromium.org/1291783003/diff/60001/src/core/SkLightingShader.h File ...
5 years, 4 months ago (2015-08-19 16:17:57 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1291783003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1291783003/80001
5 years, 4 months ago (2015-08-19 16:18:11 UTC) #8
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Build-Ubuntu-GCC-x86_64-Release-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu-GCC-x86_64-Release-Trybot/builds/2803)
5 years, 4 months ago (2015-08-19 16:19:23 UTC) #10
bsalomon
lgtm
5 years, 4 months ago (2015-08-19 16:38:20 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1291783003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1291783003/120001
5 years, 4 months ago (2015-08-19 17:14:15 UTC) #13
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 4 months ago (2015-08-19 17:20:54 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1291783003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1291783003/120001
5 years, 4 months ago (2015-08-19 17:34:37 UTC) #18
commit-bot: I haz the power
Committed patchset #7 (id:120001) as https://skia.googlesource.com/skia/+/45b59ed6e4e231814dbdb9f707b3d2a7ee50de84
5 years, 4 months ago (2015-08-19 17:35:17 UTC) #19
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1291783003/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1291783003/220001
5 years, 4 months ago (2015-08-19 21:49:44 UTC) #24
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 4 months ago (2015-08-19 21:56:24 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1291783003/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1291783003/220001
5 years, 4 months ago (2015-08-20 12:14:33 UTC) #29
commit-bot: I haz the power
5 years, 4 months ago (2015-08-20 12:15:12 UTC) #30
Message was sent while issue was closed.
Committed patchset #9 (id:220001) as
https://skia.googlesource.com/skia/+/2f0dbc761a626473c19db7de561c7072b12953c5

Powered by Google App Engine
This is Rietveld 408576698