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

Issue 2185393003: added initial GLSL support to skslc (Closed)

Created:
4 years, 4 months ago by ethannicholas
Modified:
4 years, 4 months ago
Reviewers:
dogben, egdaniel
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Patch Set 1 : added initial GLSL support to skslc #

Total comments: 46

Patch Set 2 : Fixes! #

Total comments: 8

Patch Set 3 : fixed Windows build #

Patch Set 4 : fixed struct handling, added comments #

Patch Set 5 : fixed Windows build for real #

Patch Set 6 : fixed gn build #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1516 lines, -456 lines) Patch
M BUILD.gn View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M gyp/sksl.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M public.bzl View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/sksl/SkSLCodeGenerator.h View 1 1 chunk +3 lines, -3 lines 0 comments Download
M src/sksl/SkSLCompiler.h View 1 3 chunks +9 lines, -4 lines 0 comments Download
M src/sksl/SkSLCompiler.cpp View 1 3 chunks +26 lines, -3 lines 0 comments Download
A src/sksl/SkSLGLSLCodeGenerator.h View 1 2 3 1 chunk +177 lines, -0 lines 0 comments Download
A src/sksl/SkSLGLSLCodeGenerator.cpp View 1 2 3 1 chunk +479 lines, -0 lines 0 comments Download
M src/sksl/SkSLIRGenerator.cpp View 1 2 3 5 chunks +60 lines, -20 lines 0 comments Download
M src/sksl/SkSLParser.cpp View 1 2 5 chunks +29 lines, -4 lines 0 comments Download
M src/sksl/SkSLSPIRVCodeGenerator.h View 1 4 chunks +38 lines, -38 lines 0 comments Download
M src/sksl/SkSLSPIRVCodeGenerator.cpp View 1 35 chunks +41 lines, -41 lines 0 comments Download
M src/sksl/SkSLToken.h View 1 2 3 4 2 chunks +6 lines, -0 lines 0 comments Download
M src/sksl/SkSLUtil.h View 1 2 chunks +2 lines, -5 lines 0 comments Download
M src/sksl/ast/SkSLASTLayout.h View 3 chunks +8 lines, -2 lines 0 comments Download
M src/sksl/ast/SkSLASTModifiers.h View 2 chunks +16 lines, -8 lines 0 comments Download
M src/sksl/ast/SkSLASTNode.h View 1 1 chunk +1 line, -1 line 0 comments Download
M src/sksl/ir/SkSLBoolLiteral.h View 1 1 chunk +1 line, -1 line 0 comments Download
M src/sksl/ir/SkSLFieldAccess.h View 1 2 chunks +12 lines, -2 lines 0 comments Download
M src/sksl/ir/SkSLFloatLiteral.h View 1 1 chunk +1 line, -1 line 0 comments Download
M src/sksl/ir/SkSLFunctionReference.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M src/sksl/ir/SkSLIntLiteral.h View 1 1 chunk +1 line, -1 line 0 comments Download
M src/sksl/ir/SkSLLayout.h View 1 3 chunks +17 lines, -8 lines 0 comments Download
M src/sksl/ir/SkSLModifiers.h View 3 chunks +18 lines, -10 lines 0 comments Download
M src/sksl/ir/SkSLTypeReference.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M src/sksl/ir/SkSLUnresolvedFunction.h View 1 1 chunk +3 lines, -3 lines 0 comments Download
M src/sksl/ir/SkSLVarDeclaration.h View 1 2 chunks +6 lines, -4 lines 0 comments Download
M src/sksl/ir/SkSLVariable.h View 1 chunk +1 line, -1 line 0 comments Download
M src/sksl/lex.sksl.c View 27 chunks +323 lines, -291 lines 0 comments Download
M src/sksl/sksl.flex View 1 chunk +4 lines, -0 lines 0 comments Download
A tests/SkSLGLSLTest.cpp View 1 2 3 1 chunk +227 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (14 generated)
ethannicholas
4 years, 4 months ago (2016-07-28 17:35:06 UTC) #4
dogben
Would be nice to have unit tests. As usual, anything that says "nit" is ignorable. ...
4 years, 4 months ago (2016-07-31 23:20:21 UTC) #5
dogben
BTW, can we just disable arrays in the parser and not worry about them? Maybe ...
4 years, 4 months ago (2016-08-01 13:01:46 UTC) #6
egdaniel
https://codereview.chromium.org/2185393003/diff/20001/src/sksl/SkSLGLSLCodeGenerator.cpp File src/sksl/SkSLGLSLCodeGenerator.cpp (right): https://codereview.chromium.org/2185393003/diff/20001/src/sksl/SkSLGLSLCodeGenerator.cpp#newcode162 src/sksl/SkSLGLSLCodeGenerator.cpp:162: this->write(&("x\0y\0z\0w\0"[c * 2])); not that functionally it really matters, ...
4 years, 4 months ago (2016-08-01 13:18:28 UTC) #7
ethannicholas
Added some unit tests (more will come over time, of course), fixed whitespace, and hopefully ...
4 years, 4 months ago (2016-08-02 16:13:18 UTC) #10
dogben
https://codereview.chromium.org/2185393003/diff/40001/src/sksl/SkSLGLSLCodeGenerator.cpp File src/sksl/SkSLGLSLCodeGenerator.cpp (right): https://codereview.chromium.org/2185393003/diff/40001/src/sksl/SkSLGLSLCodeGenerator.cpp#newcode62 src/sksl/SkSLGLSLCodeGenerator.cpp:62: this->writeType(f.fType); Example from the GLSL spec: struct S { ...
4 years, 4 months ago (2016-08-02 18:08:16 UTC) #13
ethannicholas
https://codereview.chromium.org/2185393003/diff/40001/src/sksl/SkSLGLSLCodeGenerator.cpp File src/sksl/SkSLGLSLCodeGenerator.cpp (right): https://codereview.chromium.org/2185393003/diff/40001/src/sksl/SkSLGLSLCodeGenerator.cpp#newcode62 src/sksl/SkSLGLSLCodeGenerator.cpp:62: this->writeType(f.fType); On 2016/08/02 18:08:15, Ben Wagner wrote: > Example ...
4 years, 4 months ago (2016-08-02 20:43:06 UTC) #15
dogben
lgtm
4 years, 4 months ago (2016-08-02 21:19:23 UTC) #16
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/2185393003/120001
4 years, 4 months ago (2016-08-03 18:31:06 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: Build-Ubuntu-Clang-x86_64-Debug-GN-Trybot on master.client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu-Clang-x86_64-Debug-GN-Trybot/builds/130)
4 years, 4 months ago (2016-08-03 18:37:56 UTC) #21
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/2185393003/140001
4 years, 4 months ago (2016-08-03 19:19:56 UTC) #24
commit-bot: I haz the power
4 years, 4 months ago (2016-08-03 19:43:39 UTC) #26
Message was sent while issue was closed.
Committed patchset #6 (id:140001) as
https://skia.googlesource.com/skia/+/f789b3893579b773bb4d7be6c2c65311500b53bb

Powered by Google App Engine
This is Rietveld 408576698