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

Issue 2132113002: SkLS accepts nullptr for pointer args, handles alpha accurately, has new GM (Closed)

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

Description

SkLS now accepting nullptr for diffuse shader and normal source, now accurately handling alpha This CL's base is the CL for taking in a diffuse shader into SkLS on the API side: https://codereview.chromium.org/2064153002 BUG=skia:5502, skia:5517 GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2132113002 Committed: https://skia.googlesource.com/skia/+/c526da94e4f2dc0c8521099dad2118c5d6b8da4a

Patch Set 1 #

Patch Set 2 : comment I forgot about diffuseshader nullptr #

Total comments: 44

Patch Set 3 : Addressed patch 2 comments #

Patch Set 4 : Fixed alpha handling, fixed problem with new GM #

Patch Set 5 : Overridden paint now gets destructed, clearer comments, GM now tests texture + transparent paint, a… #

Total comments: 10

Patch Set 6 : Fixed line length #

Patch Set 7 : Addressed patch 5 comments #

Patch Set 8 : PremulInputFP now using correct invariant output effect #

Total comments: 4

Patch Set 9 : Addressed patch 8 comments #

Patch Set 10 : Changed position coordinate types #

Total comments: 12

Patch Set 11 : Addressed patch 10 comments #

Total comments: 2

Patch Set 12 : Addressed patch 11 comment #

Total comments: 2

Patch Set 13 : Fixed multiplatform warnings, addressed patch 12 comment #

Patch Set 14 : Fixed more windows warnings #

Unified diffs Side-by-side diffs Delta from patch set Stats (+534 lines, -51 lines) Patch
A gm/lightingshader2.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +232 lines, -0 lines 0 comments Download
M include/gpu/GrFragmentProcessor.h View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download
M src/core/SkLightingShader.h View 1 1 chunk +4 lines, -2 lines 0 comments Download
M src/core/SkLightingShader.cpp View 1 2 3 4 13 chunks +65 lines, -33 lines 0 comments Download
M src/core/SkNormalSource.h View 1 chunk +4 lines, -0 lines 0 comments Download
M src/core/SkNormalSource.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 7 chunks +167 lines, -13 lines 0 comments Download
M src/gpu/GrFragmentProcessor.cpp View 1 2 3 4 5 6 7 1 chunk +40 lines, -0 lines 0 comments Download
M tests/SerializationTest.cpp View 1 chunk +16 lines, -3 lines 0 comments Download

Messages

Total messages: 54 (18 generated)
dvonbeck
4 years, 5 months ago (2016-07-08 19:00:03 UTC) #4
robertphillips
https://codereview.chromium.org/2132113002/diff/20001/gm/lightingshader2.cpp File gm/lightingshader2.cpp (right): https://codereview.chromium.org/2132113002/diff/20001/gm/lightingshader2.cpp#newcode1 gm/lightingshader2.cpp:1: /* 2016 https://codereview.chromium.org/2132113002/diff/20001/gm/lightingshader2.cpp#newcode27 gm/lightingshader2.cpp:27: // This GM exercises lighting ...
4 years, 5 months ago (2016-07-11 14:02:04 UTC) #5
egdaniel
https://codereview.chromium.org/2132113002/diff/20001/src/core/SkLightingShader.cpp File src/core/SkLightingShader.cpp (right): https://codereview.chromium.org/2132113002/diff/20001/src/core/SkLightingShader.cpp#newcode283 src/core/SkLightingShader.cpp:283: return sk_make_sp<LightingFP>(std::move(normalFP), fLights); I think we still need to ...
4 years, 5 months ago (2016-07-11 18:00:59 UTC) #6
dvonbeck
https://codereview.chromium.org/2132113002/diff/20001/gm/lightingshader2.cpp File gm/lightingshader2.cpp (right): https://codereview.chromium.org/2132113002/diff/20001/gm/lightingshader2.cpp#newcode1 gm/lightingshader2.cpp:1: /* On 2016/07/11 14:02:04, robertphillips wrote: > 2016 Done. ...
4 years, 5 months ago (2016-07-11 19:37:29 UTC) #7
robertphillips
https://codereview.chromium.org/2132113002/diff/20001/gm/lightingshader2.cpp File gm/lightingshader2.cpp (right): https://codereview.chromium.org/2132113002/diff/20001/gm/lightingshader2.cpp#newcode53 gm/lightingshader2.cpp:53: void onOnceBeforeDraw() override { On 2016/07/11 19:37:28, dvonbeck wrote: ...
4 years, 5 months ago (2016-07-11 20:40:55 UTC) #8
robertphillips
https://codereview.chromium.org/2132113002/diff/20001/src/core/SkLightingShader.cpp File src/core/SkLightingShader.cpp (right): https://codereview.chromium.org/2132113002/diff/20001/src/core/SkLightingShader.cpp#newcode291 src/core/SkLightingShader.cpp:291: bool SkLightingShaderImpl::isOpaque() const { On 2016/07/11 19:37:29, dvonbeck wrote: ...
4 years, 5 months ago (2016-07-11 20:51:42 UTC) #9
egdaniel
On 2016/07/11 20:51:42, robertphillips wrote: > https://codereview.chromium.org/2132113002/diff/20001/src/core/SkLightingShader.cpp > File src/core/SkLightingShader.cpp (right): > > https://codereview.chromium.org/2132113002/diff/20001/src/core/SkLightingShader.cpp#newcode291 > ...
4 years, 5 months ago (2016-07-12 14:01:08 UTC) #10
dvonbeck
Addressed all comments, fixed alpha, fixed new GM. https://codereview.chromium.org/2132113002/diff/20001/src/core/SkLightingShader.cpp File src/core/SkLightingShader.cpp (right): https://codereview.chromium.org/2132113002/diff/20001/src/core/SkLightingShader.cpp#newcode291 src/core/SkLightingShader.cpp:291: bool ...
4 years, 5 months ago (2016-07-12 21:01:44 UTC) #11
egdaniel
https://codereview.chromium.org/2132113002/diff/80001/gm/lightingshader2.cpp File gm/lightingshader2.cpp (right): https://codereview.chromium.org/2132113002/diff/80001/gm/lightingshader2.cpp#newcode71 gm/lightingshader2.cpp:71: SkScalar rotate, bool useNormalSource = true, bool useDiffuseShader = ...
4 years, 5 months ago (2016-07-14 03:22:47 UTC) #14
dvonbeck
https://codereview.chromium.org/2132113002/diff/80001/gm/lightingshader2.cpp File gm/lightingshader2.cpp (right): https://codereview.chromium.org/2132113002/diff/80001/gm/lightingshader2.cpp#newcode71 gm/lightingshader2.cpp:71: SkScalar rotate, bool useNormalSource = true, bool useDiffuseShader = ...
4 years, 5 months ago (2016-07-14 14:30:33 UTC) #15
dvonbeck
PremulInputFP now using correct invariant output effect
4 years, 5 months ago (2016-07-14 16:09:10 UTC) #16
egdaniel
lgtm https://codereview.chromium.org/2132113002/diff/140001/gm/lightingshader2.cpp File gm/lightingshader2.cpp (right): https://codereview.chromium.org/2132113002/diff/140001/gm/lightingshader2.cpp#newcode100 gm/lightingshader2.cpp:100: if (useTransparentPaint) { Let's also add a case ...
4 years, 5 months ago (2016-07-14 17:10:35 UTC) #17
egdaniel
On 2016/07/14 17:10:35, egdaniel wrote: > lgtm > > https://codereview.chromium.org/2132113002/diff/140001/gm/lightingshader2.cpp > File gm/lightingshader2.cpp (right): > ...
4 years, 5 months ago (2016-07-14 17:10:50 UTC) #18
egdaniel
On 2016/07/14 17:10:50, egdaniel wrote: > On 2016/07/14 17:10:35, egdaniel wrote: > > lgtm > ...
4 years, 5 months ago (2016-07-14 17:11:32 UTC) #19
egdaniel
On 2016/07/14 17:11:32, egdaniel wrote: > On 2016/07/14 17:10:50, egdaniel wrote: > > On 2016/07/14 ...
4 years, 5 months ago (2016-07-14 17:11:41 UTC) #20
dvonbeck
I fixed up lighitingshader2! A screenshot: https://screenshot.googleplex.com/wvH5zFj3SVg
4 years, 5 months ago (2016-07-19 19:54:27 UTC) #21
egdaniel
On 2016/07/19 19:54:27, dvonbeck wrote: > I fixed up lighitingshader2! A screenshot: > https://screenshot.googleplex.com/wvH5zFj3SVg That ...
4 years, 5 months ago (2016-07-19 20:03:20 UTC) #22
dvonbeck
Oops, I thought I had uploaded the code already. Here it is.
4 years, 5 months ago (2016-07-19 21:30:19 UTC) #23
dvonbeck
https://codereview.chromium.org/2132113002/diff/140001/gm/lightingshader2.cpp File gm/lightingshader2.cpp (right): https://codereview.chromium.org/2132113002/diff/140001/gm/lightingshader2.cpp#newcode100 gm/lightingshader2.cpp:100: if (useTransparentPaint) { On 2016/07/14 17:10:35, egdaniel wrote: > ...
4 years, 5 months ago (2016-07-19 21:31:12 UTC) #24
egdaniel
https://codereview.chromium.org/2132113002/diff/180001/gm/lightingshader2.cpp File gm/lightingshader2.cpp (right): https://codereview.chromium.org/2132113002/diff/180001/gm/lightingshader2.cpp#newcode10 gm/lightingshader2.cpp:10: #include <cmath> if we use simpler nested for loops ...
4 years, 5 months ago (2016-07-19 22:26:15 UTC) #25
dvonbeck
https://codereview.chromium.org/2132113002/diff/180001/gm/lightingshader2.cpp File gm/lightingshader2.cpp (right): https://codereview.chromium.org/2132113002/diff/180001/gm/lightingshader2.cpp#newcode10 gm/lightingshader2.cpp:10: #include <cmath> On 2016/07/19 22:26:15, egdaniel wrote: > if ...
4 years, 5 months ago (2016-07-20 15:21:25 UTC) #26
egdaniel
lgtm once you fix the for loops https://codereview.chromium.org/2132113002/diff/200001/gm/lightingshader2.cpp File gm/lightingshader2.cpp (right): https://codereview.chromium.org/2132113002/diff/200001/gm/lightingshader2.cpp#newcode138 gm/lightingshader2.cpp:138: for (bool ...
4 years, 5 months ago (2016-07-20 15:46:19 UTC) #27
dvonbeck
https://codereview.chromium.org/2132113002/diff/200001/gm/lightingshader2.cpp File gm/lightingshader2.cpp (right): https://codereview.chromium.org/2132113002/diff/200001/gm/lightingshader2.cpp#newcode138 gm/lightingshader2.cpp:138: for (bool useNormalSource : {true, false}) On 2016/07/20 15:46:19, ...
4 years, 5 months ago (2016-07-20 15:52:46 UTC) #28
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/2132113002/220001
4 years, 5 months ago (2016-07-20 15:53:06 UTC) #31
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/11464)
4 years, 5 months ago (2016-07-20 15:54:57 UTC) #33
egdaniel
https://codereview.chromium.org/2132113002/diff/220001/gm/lightingshader2.cpp File gm/lightingshader2.cpp (right): https://codereview.chromium.org/2132113002/diff/220001/gm/lightingshader2.cpp#newcode138 gm/lightingshader2.cpp:138: for (bool useNormalSource : {true, false}) { you don't ...
4 years, 5 months ago (2016-07-20 16:48:00 UTC) #34
dvonbeck
https://codereview.chromium.org/2132113002/diff/220001/gm/lightingshader2.cpp File gm/lightingshader2.cpp (right): https://codereview.chromium.org/2132113002/diff/220001/gm/lightingshader2.cpp#newcode138 gm/lightingshader2.cpp:138: for (bool useNormalSource : {true, false}) { On 2016/07/20 ...
4 years, 5 months ago (2016-07-20 17:17:24 UTC) #35
dvonbeck
4 years, 5 months ago (2016-07-20 17:17:26 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/2132113002/240001
4 years, 5 months ago (2016-07-20 17:17:45 UTC) #39
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/11474)
4 years, 5 months ago (2016-07-20 17:19:15 UTC) #41
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/2132113002/260001
4 years, 5 months ago (2016-07-20 17:55:54 UTC) #44
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/11480)
4 years, 5 months ago (2016-07-20 17:57:25 UTC) #46
dvonbeck
https://codereview.chromium.org/2132113002/diff/260001/include/gpu/GrFragmentProcessor.h Thanks!
4 years, 5 months ago (2016-07-20 18:03:12 UTC) #48
bsalomon
On 2016/07/20 18:03:12, dvonbeck wrote: > https://codereview.chromium.org/2132113002/diff/260001/include/gpu/GrFragmentProcessor.h > > Thanks! api lgtm
4 years, 5 months ago (2016-07-20 18:18:44 UTC) #50
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/2132113002/260001
4 years, 5 months ago (2016-07-20 18:19:33 UTC) #52
commit-bot: I haz the power
4 years, 5 months ago (2016-07-20 18:20:35 UTC) #54
Message was sent while issue was closed.
Committed patchset #14 (id:260001) as
https://skia.googlesource.com/skia/+/c526da94e4f2dc0c8521099dad2118c5d6b8da4a

Powered by Google App Engine
This is Rietveld 408576698