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

Issue 2082483002: Support line-continuation character in WebGL 2.0 (Closed)

Created:
4 years, 6 months ago by qiankun
Modified:
4 years, 5 months ago
CC:
chromium-reviews, blink-reviews, haraken
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Support line-continuation character in WebGL 2.0 BUG=295792 TEST=deqp/data/gles3/shaders/preprocessor.html CQ_INCLUDE_TRYBOTS=tryserver.chromium.win:win_optional_gpu_tests_rel;tryserver.chromium.mac:mac_optional_gpu_tests_rel Committed: https://crrev.com/725597a30a83990474f491c3f8589750e63fc9f9 Cr-Commit-Position: refs/heads/master@{#403605}

Patch Set 1 #

Patch Set 2 : Support line-continuation character in WebGL 2.0 #

Patch Set 3 : Support line-continuation character in WebGL 2.0 #

Patch Set 4 : rebase only #

Total comments: 6

Patch Set 5 : fix line-continuation semantic #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -2 lines) Patch
M third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.h View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp View 1 2 3 4 3 chunks +29 lines, -2 lines 6 comments Download

Messages

Total messages: 20 (4 generated)
qiankun
PTAL. https://codereview.chromium.org/2082483002/diff/60001/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp File third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp (right): https://codereview.chromium.org/2082483002/diff/60001/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp#newcode5473 third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp:5473: if (isWebGL2OrHigher() && string[i] == '\\') This isn't ...
4 years, 5 months ago (2016-06-29 05:31:21 UTC) #3
Zhenyao Mo
https://codereview.chromium.org/2082483002/diff/60001/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp File third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp (right): https://codereview.chromium.org/2082483002/diff/60001/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp#newcode452 third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp:452: // Advance string to next nonspace character and eat ...
4 years, 5 months ago (2016-06-29 18:16:07 UTC) #4
Ken Russell (switch to Gerrit)
https://codereview.chromium.org/2082483002/diff/60001/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp File third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp (right): https://codereview.chromium.org/2082483002/diff/60001/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp#newcode452 third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp:452: // Advance string to next nonspace character and eat ...
4 years, 5 months ago (2016-06-30 00:04:31 UTC) #5
qiankun
Thanks your comments. I updated the CL. Please help to take another look. https://codereview.chromium.org/2082483002/diff/60001/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp File ...
4 years, 5 months ago (2016-06-30 15:12:47 UTC) #6
Zhenyao Mo
https://codereview.chromium.org/2082483002/diff/80001/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp File third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp (right): https://codereview.chromium.org/2082483002/diff/80001/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp#newcode455 third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp:455: if (peek(temp) && isNewline(temp)) What if it's "\r\n"? Two ...
4 years, 5 months ago (2016-06-30 16:10:39 UTC) #7
Zhenyao Mo
https://codereview.chromium.org/2082483002/diff/80001/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp File third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp (right): https://codereview.chromium.org/2082483002/diff/80001/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp#newcode455 third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp:455: if (peek(temp) && isNewline(temp)) On 2016/06/30 16:10:39, Zhenyao Mo ...
4 years, 5 months ago (2016-06-30 16:40:55 UTC) #8
Ken Russell (switch to Gerrit)
Sorry to keep going around on this. I'll LGTM it to unblock you and ask ...
4 years, 5 months ago (2016-07-01 00:42:30 UTC) #9
qiankun
https://codereview.chromium.org/2082483002/diff/80001/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp File third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp (right): https://codereview.chromium.org/2082483002/diff/80001/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp#newcode5486 third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp:5486: synthesizeGLError(GL_INVALID_VALUE, "shaderSource", "line-continuation character is not immediately preceding a ...
4 years, 5 months ago (2016-07-01 10:32:01 UTC) #10
Zhenyao Mo
lgtm https://codereview.chromium.org/2082483002/diff/80001/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp File third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp (right): https://codereview.chromium.org/2082483002/diff/80001/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp#newcode5486 third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp:5486: synthesizeGLError(GL_INVALID_VALUE, "shaderSource", "line-continuation character is not immediately preceding ...
4 years, 5 months ago (2016-07-01 16:53:50 UTC) #11
qiankun
On 2016/07/01 16:53:50, Zhenyao Mo wrote: > > > > > For the rest of ...
4 years, 5 months ago (2016-07-02 03:09:42 UTC) #12
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/2082483002/80001
4 years, 5 months ago (2016-07-02 03:10:07 UTC) #14
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 5 months ago (2016-07-02 04:38:54 UTC) #15
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-02 04:38:56 UTC) #16
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/725597a30a83990474f491c3f8589750e63fc9f9 Cr-Commit-Position: refs/heads/master@{#403605}
4 years, 5 months ago (2016-07-02 04:42:19 UTC) #18
Zhenyao Mo
Qiankun, per discussion in https://github.com/KhronosGroup/WebGL/pull/1836 Our current blink side validation is too strict. We should ...
4 years, 5 months ago (2016-07-06 17:46:29 UTC) #19
qiankun
4 years, 5 months ago (2016-07-07 10:33:40 UTC) #20
Message was sent while issue was closed.
On 2016/07/06 17:46:29, Zhenyao Mo wrote:
> Qiankun, per discussion in https://github.com/KhronosGroup/WebGL/pull/1836
> 
> Our current blink side validation is too strict.
> 
> We should only process '\\' if it's at the end of a commen line in blink
because
> we strip away all comments in blink.
> 
> Other than that, we should just pass it down to ANGLE translator to handle.
> 
> Can you send a CL to change to this behavior?

Done in https://codereview.chromium.org/2129883002/. PTAL.
Also test updated: https://github.com/KhronosGroup/WebGL/pull/1849.
Now related tests in preprocessor.html can pass now.

Powered by Google App Engine
This is Rietveld 408576698