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

Issue 1474513003: Upgrade PixelStorei to ES3/WebGL2. (Closed)

Created:
5 years, 1 month ago by Zhenyao Mo
Modified:
5 years ago
CC:
chromium-reviews, blink-reviews, piman+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Upgrade PixelStorei to ES3/WebGL2. BUG=295792, 429053 TEST=gpu_unittests, webgl2_conformance R=kbr@chromium.org,bajones@chromium.org,piman@chromium.org Committed: https://crrev.com/c6c114178c562feeddfc4d41a33b9999698a4144 Cr-Commit-Position: refs/heads/master@{#362585}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 5

Patch Set 4 : #

Patch Set 5 : per piman comments #

Patch Set 6 : add testing #

Total comments: 4

Patch Set 7 : client side #

Unified diffs Side-by-side diffs Delta from patch set Stats (+709 lines, -96 lines) Patch
M gpu/command_buffer/build_gles2_cmd_buffer.py View 1 2 3 4 5 6 9 chunks +77 lines, -6 lines 0 comments Download
M gpu/command_buffer/client/gles2_implementation.h View 1 2 3 4 5 6 1 chunk +9 lines, -0 lines 0 comments Download
M gpu/command_buffer/client/gles2_implementation.cc View 1 2 3 4 5 6 6 chunks +61 lines, -20 lines 0 comments Download
M gpu/command_buffer/service/context_state.h View 1 2 3 4 1 chunk +7 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/context_state.cc View 1 2 3 4 5 4 chunks +38 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/context_state_autogen.h View 1 chunk +8 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/context_state_impl_autogen.h View 1 2 3 5 chunks +168 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 1 2 3 4 5 6 7 chunks +99 lines, -22 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_unittest_0_autogen.h View 1 2 2 chunks +41 lines, -1 line 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_unittest_context_state.cc View 1 2 3 4 5 2 chunks +64 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.h View 1 2 3 3 chunks +13 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp View 1 2 3 7 chunks +92 lines, -24 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.h View 1 2 3 2 chunks +6 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp View 1 2 3 7 chunks +24 lines, -20 lines 0 comments Download

Messages

Total messages: 41 (14 generated)
Zhenyao Mo
kbr, bajones: blink side piman, bajones: command buffer side Please take a look. (Note that ...
5 years ago (2015-11-24 23:40:23 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1474513003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1474513003/40001
5 years ago (2015-11-24 23:41:10 UTC) #3
bajones
https://codereview.chromium.org/1474513003/diff/40001/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp File third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp (right): https://codereview.chromium.org/1474513003/diff/40001/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp#newcode880 third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp:880: resetUnpackParameters(); There are several similar bits of code in ...
5 years ago (2015-11-25 00:03:05 UTC) #4
Ken Russell (switch to Gerrit)
https://codereview.chromium.org/1474513003/diff/40001/gpu/command_buffer/build_gles2_cmd_buffer.py File gpu/command_buffer/build_gles2_cmd_buffer.py (right): https://codereview.chromium.org/1474513003/diff/40001/gpu/command_buffer/build_gles2_cmd_buffer.py#newcode10245 gpu/command_buffer/build_gles2_cmd_buffer.py:10245: f.write(" if (feature_info_->IsES3Enabled()) {\n"); This needs to be IsES3Capable() ...
5 years ago (2015-11-25 00:59:41 UTC) #5
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years ago (2015-11-25 03:55:10 UTC) #7
Zhenyao Mo
Revised. Please take another look. https://codereview.chromium.org/1474513003/diff/40001/gpu/command_buffer/build_gles2_cmd_buffer.py File gpu/command_buffer/build_gles2_cmd_buffer.py (right): https://codereview.chromium.org/1474513003/diff/40001/gpu/command_buffer/build_gles2_cmd_buffer.py#newcode10245 gpu/command_buffer/build_gles2_cmd_buffer.py:10245: f.write(" if (feature_info_->IsES3Enabled()) {\n"); ...
5 years ago (2015-11-25 18:18:48 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1474513003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1474513003/60001
5 years ago (2015-11-25 18:20:28 UTC) #10
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years ago (2015-11-25 21:13:55 UTC) #12
Zhenyao Mo
OK, try bots are happy. PTAL.
5 years ago (2015-11-25 21:16:51 UTC) #13
bajones
LGTM, thanks for the revisions!
5 years ago (2015-11-25 21:29:53 UTC) #14
Ken Russell (switch to Gerrit)
Very nice. LGTM
5 years ago (2015-11-25 21:34:56 UTC) #15
piman
not lgtm, I don't think this is what we want to do. PixelStore configures the ...
5 years ago (2015-11-25 23:00:20 UTC) #16
Zhenyao Mo
piman: Please look again. Note that I didn't fix the Computation of image size for ...
5 years ago (2015-12-01 00:14:37 UTC) #18
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1474513003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1474513003/100001
5 years ago (2015-12-01 00:14:40 UTC) #19
piman
https://codereview.chromium.org/1474513003/diff/100001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/1474513003/diff/100001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode8893 gpu/command_buffer/service/gles2_cmd_decoder.cc:8893: // ES3, including more pack parameters. For safety, because ...
5 years ago (2015-12-01 01:27:34 UTC) #20
piman
Also, the client-side pack values are not cached/handled for GLES2Implementation::ReadPixels, like the unpack ones are ...
5 years ago (2015-12-01 01:30:52 UTC) #21
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years ago (2015-12-01 03:58:32 UTC) #23
Zhenyao Mo
We also need to update WebGL ReadPixels array buffer size validation to accommodate the ES3 ...
5 years ago (2015-12-01 22:11:53 UTC) #24
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1474513003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1474513003/120001
5 years ago (2015-12-01 22:16:11 UTC) #26
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1474513003/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1474513003/160001
5 years ago (2015-12-01 22:27:51 UTC) #30
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years ago (2015-12-02 00:26:58 UTC) #32
piman
LGTM, looking forward to follow ups.
5 years ago (2015-12-02 01:11:59 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1474513003/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1474513003/160001
5 years ago (2015-12-02 01:19:51 UTC) #36
commit-bot: I haz the power
Committed patchset #7 (id:160001)
5 years ago (2015-12-02 02:16:42 UTC) #37
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/c6c114178c562feeddfc4d41a33b9999698a4144 Cr-Commit-Position: refs/heads/master@{#362585}
5 years ago (2015-12-02 02:17:28 UTC) #39
Jamie Madill
A revert of this CL (patchset #7 id:160001) has been created in https://codereview.chromium.org/1494553002/ by jmadill@chromium.org. ...
5 years ago (2015-12-02 13:50:08 UTC) #40
Zhenyao Mo
5 years ago (2015-12-02 17:29:40 UTC) #41
Message was sent while issue was closed.
On 2015/12/02 13:50:08, Jamie Madill wrote:
> A revert of this CL (patchset #7 id:160001) has been created in
> https://codereview.chromium.org/1494553002/ by mailto:jmadill@chromium.org.
> 
> The reason for reverting is: Failing the WebGL 2 CTS:
> 
> WebglConformance.conformance2_state_gl_get_calls:
> [3560:1299:1202/051124:INFO:CONSOLE(11)]
> "context.getParameter(context.UNPACK_SKIP_IMAGES) should be false (of type
> boolean). Was 0 (of type number).", source:  (11)
> [3560:1299:1202/051124:INFO:CONSOLE(11)] "FAIL
> context.getParameter(context.UNPACK_SKIP_IMAGES) should be false (of type
> boolean). Was 0 (of type number).", source:  (11)
> [3560:1299:1202/051124:INFO:CONSOLE(11)]
> "context.getParameter(context.UNPACK_SKIP_PIXELS) should be false (of type
> boolean). Was 0 (of type number).", source:  (11)
> [3560:1299:1202/051124:INFO:CONSOLE(11)] "FAIL
> context.getParameter(context.UNPACK_SKIP_PIXELS) should be false (of type
> boolean). Was 0 (of type number).", source:  (11)
> [3560:1299:1202/051124:INFO:CONSOLE(11)]
> "context.getParameter(context.UNPACK_SKIP_ROWS) should be false (of type
> boolean). Was 0 (of type number).", source:  (11)
> [3560:1299:1202/051124:INFO:CONSOLE(11)] "FAIL
> context.getParameter(context.UNPACK_SKIP_ROWS) should be false (of type
> boolean). Was 0 (of type number).", source:  (11)
> 
>
http://build.chromium.org/p/chromium.gpu.fyi/builders/Mac%2010.10%20Release%2...
>
http://build.chromium.org/p/chromium.gpu.fyi/builders/Win8%20Debug%20%28NVIDI...
>
http://build.chromium.org/p/chromium.gpu.fyi/builders/Linux%20Release%20%28NV....

Jamie, my CL is correct and the test is wrong.  So I am going to reland and
suppress the failure.

(I informed capn not to revert, but forget you are constantly watching the
bots.)

Powered by Google App Engine
This is Rietveld 408576698