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

Issue 2062703003: Abstracted diffuse color map out of SkLightingShaderImpl into a generic SkShader (Closed)

Created:
4 years, 6 months ago by dvonbeck
Modified:
4 years, 5 months ago
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia@dvonbeck-normal-api-change
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Abstracted diffuse color map out of SkLightingShaderImpl into a generic SkShader Will not run until after landing https://codereview.chromium.org/2106893003/ This CL's base is the CL for the addition of NormalSource to the API: https://codereview.chromium.org/2063793002/ BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2062703003 Committed: https://skia.googlesource.com/skia/+/3f58cd0eb8bf4499c4f179aa6111d7e005809df8 Committed: https://skia.googlesource.com/skia/+/e6347ad7459a52f42241fd5c48638725d9f11b40

Patch Set 1 #

Patch Set 2 : Deleted out-of-date comments #

Patch Set 3 : Small style fix #

Patch Set 4 : Got rid of VLAs #

Patch Set 5 : rebase #

Patch Set 6 : Rebased, now allocates LightingShaderContext deps on the heap #

Total comments: 1

Patch Set 7 : rebase #

Total comments: 3

Patch Set 8 : Rebase #

Patch Set 9 : diffuseFP is now in series with lightingFP #

Patch Set 10 : rebase #

Total comments: 4

Patch Set 11 : Changed to SkAssertResult to avoid Release warning #

Patch Set 12 : Nullptr returns now propagate through fragment processor creation chain #

Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -146 lines) Patch
M src/core/SkLightingShader.cpp View 1 2 3 4 5 6 7 8 9 10 11 16 chunks +62 lines, -145 lines 0 comments Download
M src/core/SkNormalSource.cpp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -1 line 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 40 (17 generated)
dvonbeck
4 years, 6 months ago (2016-06-14 17:39:25 UTC) #4
dvonbeck
https://codereview.chromium.org/2062703003/diff/100001/src/core/SkLightingShader.cpp File src/core/SkLightingShader.cpp (right): https://codereview.chromium.org/2062703003/diff/100001/src/core/SkLightingShader.cpp#newcode461 src/core/SkLightingShader.cpp:461: void* heapAllocated = malloc(heapRequired); // Freed on ~LightingShaderContext() malloc ...
4 years, 6 months ago (2016-06-17 16:05:52 UTC) #5
dvonbeck
rebase
4 years, 6 months ago (2016-06-20 21:45:42 UTC) #6
egdaniel
+rob so he can start looking at changes https://codereview.chromium.org/2062703003/diff/120001/src/core/SkLightingShader.cpp File src/core/SkLightingShader.cpp (right): https://codereview.chromium.org/2062703003/diff/120001/src/core/SkLightingShader.cpp#newcode276 src/core/SkLightingShader.cpp:276: new ...
4 years, 5 months ago (2016-06-27 13:55:39 UTC) #8
dvonbeck
https://codereview.chromium.org/2062703003/diff/120001/src/core/SkLightingShader.cpp File src/core/SkLightingShader.cpp (right): https://codereview.chromium.org/2062703003/diff/120001/src/core/SkLightingShader.cpp#newcode276 src/core/SkLightingShader.cpp:276: new LightingFP(std::move(diffuseFP), std::move(normalFP), fLights)); On 2016/06/27 13:55:39, egdaniel wrote: ...
4 years, 5 months ago (2016-06-27 15:15:45 UTC) #9
dvonbeck
https://codereview.chromium.org/2062703003/diff/120001/src/core/SkLightingShader.cpp File src/core/SkLightingShader.cpp (right): https://codereview.chromium.org/2062703003/diff/120001/src/core/SkLightingShader.cpp#newcode276 src/core/SkLightingShader.cpp:276: new LightingFP(std::move(diffuseFP), std::move(normalFP), fLights)); On 2016/06/27 15:15:45, dvonbeck wrote: ...
4 years, 5 months ago (2016-06-28 20:33:37 UTC) #12
robertphillips
lgtm
4 years, 5 months ago (2016-07-06 16:53:31 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2062703003/180001
4 years, 5 months ago (2016-07-06 21:03:59 UTC) #16
commit-bot: I haz the power
Dry run: 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/9465)
4 years, 5 months ago (2016-07-06 21:08:31 UTC) #18
dvonbeck
https://codereview.chromium.org/2062703003/diff/180001/src/core/SkLightingShader.cpp File src/core/SkLightingShader.cpp (right): https://codereview.chromium.org/2062703003/diff/180001/src/core/SkLightingShader.cpp#newcode397 src/core/SkLightingShader.cpp:397: SkASSERT(!hasLocalMatrix); CQ's release bots are failing to compile here ...
4 years, 5 months ago (2016-07-06 21:21:02 UTC) #19
dvonbeck
https://codereview.chromium.org/2062703003/diff/180001/src/core/SkLightingShader.cpp File src/core/SkLightingShader.cpp (right): https://codereview.chromium.org/2062703003/diff/180001/src/core/SkLightingShader.cpp#newcode397 src/core/SkLightingShader.cpp:397: SkASSERT(!hasLocalMatrix); On 2016/07/06 21:21:02, dvonbeck wrote: > CQ's release ...
4 years, 5 months ago (2016-07-06 21:22:35 UTC) #20
robertphillips
https://codereview.chromium.org/2062703003/diff/180001/src/core/SkLightingShader.cpp File src/core/SkLightingShader.cpp (right): https://codereview.chromium.org/2062703003/diff/180001/src/core/SkLightingShader.cpp#newcode397 src/core/SkLightingShader.cpp:397: SkASSERT(!hasLocalMatrix); On 2016/07/06 21:22:35, dvonbeck wrote: > On 2016/07/06 ...
4 years, 5 months ago (2016-07-06 21:56:43 UTC) #21
dvonbeck
https://codereview.chromium.org/2062703003/diff/180001/src/core/SkLightingShader.cpp File src/core/SkLightingShader.cpp (right): https://codereview.chromium.org/2062703003/diff/180001/src/core/SkLightingShader.cpp#newcode397 src/core/SkLightingShader.cpp:397: SkASSERT(!hasLocalMatrix); On 2016/07/06 21:56:43, robertphillips wrote: > On 2016/07/06 ...
4 years, 5 months ago (2016-07-06 22:19:10 UTC) #22
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2062703003/200001
4 years, 5 months ago (2016-07-06 22:19:32 UTC) #24
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 5 months ago (2016-07-06 22:43:28 UTC) #26
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/2062703003/200001
4 years, 5 months ago (2016-07-07 03:02:52 UTC) #29
commit-bot: I haz the power
Committed patchset #11 (id:200001) as https://skia.googlesource.com/skia/+/3f58cd0eb8bf4499c4f179aa6111d7e005809df8
4 years, 5 months ago (2016-07-07 03:03:53 UTC) #31
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-07 03:03:55 UTC) #32
rmistry
A revert of this CL (patchset #11 id:200001) has been created in https://codereview.chromium.org/2137513002/ by rmistry@google.com. ...
4 years, 5 months ago (2016-07-08 13:18:36 UTC) #33
dvonbeck
This fixes the valgrind problem (on my computer, at least). Please LMK if I should ...
4 years, 5 months ago (2016-07-08 18:13:33 UTC) #35
robertphillips
lgtm
4 years, 5 months ago (2016-07-08 18:22:52 UTC) #36
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/2062703003/220001
4 years, 5 months ago (2016-07-08 18:24:31 UTC) #38
commit-bot: I haz the power
4 years, 5 months ago (2016-07-10 00:08:20 UTC) #40
Message was sent while issue was closed.
Committed patchset #12 (id:220001) as
https://skia.googlesource.com/skia/+/e6347ad7459a52f42241fd5c48638725d9f11b40

Powered by Google App Engine
This is Rietveld 408576698