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

Issue 2080993002: Added API for Bevel NormalSource. (Closed)

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

Added API for Bevel NormalSource. This CL adds an API for Bevel normal source and a dummy implementation that returns a normal (0, 0, 1) every time. This CL's base is the CL for accepting nullptrs: https://codereview.chromium.org/2132113002 BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2080993002 Committed: https://skia.googlesource.com/skia/+/bba4cfebcabba3aca5c2452d7df1853258bd701c

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : Style fixes #

Patch Set 4 : Small init fix #

Total comments: 21

Patch Set 5 : Rebased, addressed patch 4 comments #

Total comments: 18

Patch Set 6 : Addressed patch 5 comments #

Patch Set 7 : Style fixes, serialization fixes #

Total comments: 8

Patch Set 8 : Addressed patch 7 comments #

Total comments: 14

Patch Set 9 : Addressed patch 8 comments #

Total comments: 6

Patch Set 10 : Addressed patch 9 comments #

Total comments: 8

Patch Set 11 : Addressed patch 10 comments #

Patch Set 12 : Fixed small type problem #

Patch Set 13 : rebase #

Patch Set 14 : Fixed small problem with bevel type label #

Patch Set 15 : Fixed forward declarations #

Patch Set 16 : fixed unused field #

Unified diffs Side-by-side diffs Delta from patch set Stats (+799 lines, -655 lines) Patch
A gm/lightingshaderbevel.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +269 lines, -0 lines 0 comments Download
M gyp/core.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +6 lines, -0 lines 0 comments Download
A src/core/SkNormalBevelSource.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +57 lines, -0 lines 0 comments Download
A src/core/SkNormalBevelSource.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +165 lines, -0 lines 0 comments Download
A src/core/SkNormalFlatSource.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +48 lines, -0 lines 0 comments Download
A src/core/SkNormalFlatSource.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +107 lines, -0 lines 0 comments Download
A src/core/SkNormalMapSource.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +62 lines, -0 lines 0 comments Download
A + src/core/SkNormalMapSource.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 8 chunks +13 lines, -210 lines 0 comments Download
M src/core/SkNormalSource.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +54 lines, -0 lines 0 comments Download
M src/core/SkNormalSource.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +7 lines, -445 lines 0 comments Download
M tests/SerializationTest.cpp View 1 2 3 4 5 1 chunk +11 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 53 (24 generated)
dvonbeck
4 years, 6 months ago (2016-06-20 21:38:10 UTC) #4
dvonbeck
rebase
4 years, 6 months ago (2016-06-20 21:46:56 UTC) #5
robertphillips
https://codereview.chromium.org/2080993002/diff/60001/gm/lightingshader.cpp File gm/lightingshader.cpp (right): https://codereview.chromium.org/2080993002/diff/60001/gm/lightingshader.cpp#newcode62 gm/lightingshader.cpp:62: protected: Would it make sense to convert this to ...
4 years, 5 months ago (2016-07-11 19:13:21 UTC) #7
dvonbeck
Rebased and addressed comments. Should be g2g after lgtm. https://codereview.chromium.org/2080993002/diff/60001/gm/lightingshader.cpp File gm/lightingshader.cpp (right): https://codereview.chromium.org/2080993002/diff/60001/gm/lightingshader.cpp#newcode62 gm/lightingshader.cpp:62: ...
4 years, 5 months ago (2016-07-13 14:23:38 UTC) #8
robertphillips
https://codereview.chromium.org/2080993002/diff/80001/gm/lightingshader.cpp File gm/lightingshader.cpp (right): https://codereview.chromium.org/2080993002/diff/80001/gm/lightingshader.cpp#newcode116 gm/lightingshader.cpp:116: This is fine. There is a SkBitmap::getBounds entry point ...
4 years, 5 months ago (2016-07-13 14:39:02 UTC) #9
robertphillips
https://codereview.chromium.org/2080993002/diff/60001/src/core/SkLightingShader.cpp File src/core/SkLightingShader.cpp (right): https://codereview.chromium.org/2080993002/diff/60001/src/core/SkLightingShader.cpp#newcode497 src/core/SkLightingShader.cpp:497: } On 2016/07/13 14:23:37, dvonbeck wrote: > On 2016/07/11 ...
4 years, 5 months ago (2016-07-13 14:40:22 UTC) #10
dvonbeck
https://codereview.chromium.org/2080993002/diff/60001/src/core/SkLightingShader.cpp File src/core/SkLightingShader.cpp (right): https://codereview.chromium.org/2080993002/diff/60001/src/core/SkLightingShader.cpp#newcode497 src/core/SkLightingShader.cpp:497: } On 2016/07/13 14:40:22, robertphillips wrote: > On 2016/07/13 ...
4 years, 5 months ago (2016-07-13 16:09:17 UTC) #11
robertphillips
https://codereview.chromium.org/2080993002/diff/80001/src/core/SkNormalSource.cpp File src/core/SkNormalSource.cpp (right): https://codereview.chromium.org/2080993002/diff/80001/src/core/SkNormalSource.cpp#newcode535 src/core/SkNormalSource.cpp:535: public: On 2016/07/13 16:09:16, dvonbeck wrote: > On 2016/07/13 ...
4 years, 5 months ago (2016-07-13 16:16:55 UTC) #12
dvonbeck
https://codereview.chromium.org/2080993002/diff/60001/src/core/SkNormalSource.cpp File src/core/SkNormalSource.cpp (right): https://codereview.chromium.org/2080993002/diff/60001/src/core/SkNormalSource.cpp#newcode363 src/core/SkNormalSource.cpp:363: On 2016/07/13 14:23:37, dvonbeck wrote: > On 2016/07/11 19:13:21, ...
4 years, 5 months ago (2016-07-13 16:30:16 UTC) #13
egdaniel
I think at this point a design doc would be extremely useful! https://codereview.chromium.org/2080993002/diff/120001/src/core/SkNormalSource.cpp File src/core/SkNormalSource.cpp ...
4 years, 5 months ago (2016-07-14 17:23:30 UTC) #16
dvonbeck
https://codereview.chromium.org/2080993002/diff/120001/src/core/SkNormalSource.h File src/core/SkNormalSource.h (right): https://codereview.chromium.org/2080993002/diff/120001/src/core/SkNormalSource.h#newcode72 src/core/SkNormalSource.h:72: enum class BevelType { On 2016/07/14 17:23:30, egdaniel wrote: ...
4 years, 5 months ago (2016-07-19 23:00:13 UTC) #17
egdaniel
https://codereview.chromium.org/2080993002/diff/120001/src/core/SkNormalSource.h File src/core/SkNormalSource.h (right): https://codereview.chromium.org/2080993002/diff/120001/src/core/SkNormalSource.h#newcode72 src/core/SkNormalSource.h:72: enum class BevelType { On 2016/07/19 23:00:13, dvonbeck wrote: ...
4 years, 5 months ago (2016-07-19 23:31:26 UTC) #18
dvonbeck
I split up the files and added more meaningful comments to the bevel normalsource. I'm ...
4 years, 5 months ago (2016-07-22 15:08:23 UTC) #19
egdaniel
https://codereview.chromium.org/2080993002/diff/140001/gm/lightingshader.cpp File gm/lightingshader.cpp (right): https://codereview.chromium.org/2080993002/diff/140001/gm/lightingshader.cpp#newcode158 gm/lightingshader.cpp:158: this->drawBevelRect(canvas, r); do we really want to change this ...
4 years, 5 months ago (2016-07-25 15:48:00 UTC) #20
dvonbeck
https://codereview.chromium.org/2080993002/diff/140001/gm/lightingshader.cpp File gm/lightingshader.cpp (right): https://codereview.chromium.org/2080993002/diff/140001/gm/lightingshader.cpp#newcode158 gm/lightingshader.cpp:158: this->drawBevelRect(canvas, r); On 2016/07/25 15:48:00, egdaniel wrote: > do ...
4 years, 5 months ago (2016-07-25 20:37:14 UTC) #21
egdaniel
https://codereview.chromium.org/2080993002/diff/160001/gm/lightingshaderbevel.cpp File gm/lightingshaderbevel.cpp (right): https://codereview.chromium.org/2080993002/diff/160001/gm/lightingshaderbevel.cpp#newcode108 gm/lightingshaderbevel.cpp:108: for (bool useTranslucentPaint : {true, false}) { Is there ...
4 years, 4 months ago (2016-07-26 19:54:41 UTC) #22
dvonbeck
https://codereview.chromium.org/2080993002/diff/160001/gm/lightingshaderbevel.cpp File gm/lightingshaderbevel.cpp (right): https://codereview.chromium.org/2080993002/diff/160001/gm/lightingshaderbevel.cpp#newcode108 gm/lightingshaderbevel.cpp:108: for (bool useTranslucentPaint : {true, false}) { On 2016/07/26 ...
4 years, 4 months ago (2016-07-27 17:44:57 UTC) #23
egdaniel
https://codereview.chromium.org/2080993002/diff/180001/gm/lightingshaderbevel.cpp File gm/lightingshaderbevel.cpp (right): https://codereview.chromium.org/2080993002/diff/180001/gm/lightingshaderbevel.cpp#newcode122 gm/lightingshaderbevel.cpp:122: paint.setAntiAlias(true); I would set AntiAlias for all the shapes ...
4 years, 4 months ago (2016-07-27 17:57:28 UTC) #24
dvonbeck
https://codereview.chromium.org/2080993002/diff/180001/gm/lightingshaderbevel.cpp File gm/lightingshaderbevel.cpp (right): https://codereview.chromium.org/2080993002/diff/180001/gm/lightingshaderbevel.cpp#newcode122 gm/lightingshaderbevel.cpp:122: paint.setAntiAlias(true); On 2016/07/27 17:57:28, egdaniel wrote: > I would ...
4 years, 4 months ago (2016-07-27 18:46:36 UTC) #25
egdaniel
lgtm
4 years, 4 months ago (2016-07-27 20:03:21 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/2080993002/200001
4 years, 4 months ago (2016-07-27 20:27:40 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: Build-Ubuntu-GCC-x86_64-Release-CMake-Trybot on master.client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu-GCC-x86_64-Release-CMake-Trybot/builds/3099)
4 years, 4 months ago (2016-07-27 20:29:08 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/2080993002/240001
4 years, 4 months ago (2016-07-27 21:42:03 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: Build-Ubuntu-GCC-Arm7-Debug-Android-Trybot on master.client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu-GCC-Arm7-Debug-Android-Trybot/builds/10098)
4 years, 4 months ago (2016-07-27 21:45:54 UTC) #35
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/2080993002/250001
4 years, 4 months ago (2016-07-27 22:03:23 UTC) #38
commit-bot: I haz the power
Try jobs failed on following builders: Build-Ubuntu-Clang-x86_64-Debug-Trybot on master.client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu-Clang-x86_64-Debug-Trybot/builds/10106)
4 years, 4 months ago (2016-07-27 22:07:33 UTC) #40
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/2080993002/260001
4 years, 4 months ago (2016-07-28 14:33:14 UTC) #43
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/2080993002/280001
4 years, 4 months ago (2016-07-28 15:55:20 UTC) #51
commit-bot: I haz the power
4 years, 4 months ago (2016-07-28 15:58:23 UTC) #53
Message was sent while issue was closed.
Committed patchset #16 (id:280001) as
https://skia.googlesource.com/skia/+/bba4cfebcabba3aca5c2452d7df1853258bd701c

Powered by Google App Engine
This is Rietveld 408576698