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

Issue 2019513004: Validate bound buffer for draw calls (Closed)

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

Validate bound buffer for draw calls DrawArrays or drawElements should generate invalid operation error if no buffer is bound to enabled attribution. Refer WebGL 1.0 spec for details in section 6.5 "Enabled Vertex Attributes and Range Checking". BUG=295792 TEST=conformance2/vertex_arrays/vertex-array-object.html CQ_INCLUDE_TRYBOTS=tryserver.chromium.win:win_optional_gpu_tests_rel;tryserver.chromium.mac:mac_optional_gpu_tests_rel Committed: https://crrev.com/c95c158d5e3728560af35113ea5fff919ccb8cb2 Cr-Commit-Position: refs/heads/master@{#398246}

Patch Set 1 #

Total comments: 2

Patch Set 2 : clean rebase #

Patch Set 3 : use cache #

Total comments: 4

Patch Set 4 : private function #

Unified diffs Side-by-side diffs Delta from patch set Stats (+76 lines, -1 line) Patch
M third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp View 1 3 chunks +15 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp View 1 6 chunks +22 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLVertexArrayObjectBase.h View 1 2 3 3 chunks +7 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLVertexArrayObjectBase.cpp View 1 2 4 chunks +32 lines, -1 line 0 comments Download

Messages

Total messages: 28 (6 generated)
qiankun
PTAL. Also a fix in conformance test is added: https://github.com/KhronosGroup/WebGL/pull/1717. With these patches, conformance2/vertex_arrays/vertex-array-object.html passes. ...
4 years, 6 months ago (2016-05-27 11:48:32 UTC) #3
Zhenyao Mo
On 2016/05/27 11:48:32, qiankun wrote: > PTAL. > Also a fix in conformance test is ...
4 years, 6 months ago (2016-05-27 14:04:02 UTC) #4
qiankun
On 2016/05/27 14:04:02, Zhenyao Mo wrote: > On 2016/05/27 11:48:32, qiankun wrote: > > PTAL. ...
4 years, 6 months ago (2016-05-31 04:55:18 UTC) #5
Ken Russell (switch to Gerrit)
On 2016/05/31 04:55:18, qiankun wrote: > On 2016/05/27 14:04:02, Zhenyao Mo wrote: > > On ...
4 years, 6 months ago (2016-06-01 00:08:27 UTC) #6
Zhenyao Mo
On 2016/06/01 00:08:27, Ken Russell wrote: > On 2016/05/31 04:55:18, qiankun wrote: > > On ...
4 years, 6 months ago (2016-06-01 00:12:10 UTC) #7
qiankun
On 2016/06/01 00:12:10, Zhenyao Mo wrote: > > > > > > > > According ...
4 years, 6 months ago (2016-06-01 01:18:35 UTC) #8
Ken Russell (switch to Gerrit)
On 2016/06/01 01:18:35, qiankun wrote: > On 2016/06/01 00:12:10, Zhenyao Mo wrote: > > > ...
4 years, 6 months ago (2016-06-01 01:25:35 UTC) #9
Zhenyao Mo
On 2016/06/01 01:25:35, Ken Russell wrote: > On 2016/06/01 01:18:35, qiankun wrote: > > On ...
4 years, 6 months ago (2016-06-01 02:21:46 UTC) #10
Zhenyao Mo
On 2016/06/01 02:21:46, Zhenyao Mo wrote: > On 2016/06/01 01:25:35, Ken Russell wrote: > > ...
4 years, 6 months ago (2016-06-01 02:38:12 UTC) #11
Zhenyao Mo
On 2016/06/01 02:38:12, Zhenyao Mo wrote: > On 2016/06/01 02:21:46, Zhenyao Mo wrote: > > ...
4 years, 6 months ago (2016-06-01 02:38:34 UTC) #12
Ken Russell (switch to Gerrit)
On 2016/06/01 02:38:34, Zhenyao Mo wrote: > On 2016/06/01 02:38:12, Zhenyao Mo wrote: > > ...
4 years, 6 months ago (2016-06-01 02:42:44 UTC) #13
Ken Russell (switch to Gerrit)
https://codereview.chromium.org/2019513004/diff/1/third_party/WebKit/Source/modules/webgl/WebGLVertexArrayObjectBase.cpp File third_party/WebKit/Source/modules/webgl/WebGLVertexArrayObjectBase.cpp (right): https://codereview.chromium.org/2019513004/diff/1/third_party/WebKit/Source/modules/webgl/WebGLVertexArrayObjectBase.cpp#newcode113 third_party/WebKit/Source/modules/webgl/WebGLVertexArrayObjectBase.cpp:113: bool WebGLVertexArrayObjectBase::isAllEnabledAttribBufferBound() This function is potentially very hot -- ...
4 years, 6 months ago (2016-06-01 20:55:24 UTC) #14
qiankun
https://codereview.chromium.org/2019513004/diff/1/third_party/WebKit/Source/modules/webgl/WebGLVertexArrayObjectBase.cpp File third_party/WebKit/Source/modules/webgl/WebGLVertexArrayObjectBase.cpp (right): https://codereview.chromium.org/2019513004/diff/1/third_party/WebKit/Source/modules/webgl/WebGLVertexArrayObjectBase.cpp#newcode113 third_party/WebKit/Source/modules/webgl/WebGLVertexArrayObjectBase.cpp:113: bool WebGLVertexArrayObjectBase::isAllEnabledAttribBufferBound() On 2016/06/01 20:55:24, Ken Russell wrote: > ...
4 years, 6 months ago (2016-06-06 11:28:36 UTC) #15
Ken Russell (switch to Gerrit)
On 2016/06/06 11:28:36, qiankun wrote: > https://codereview.chromium.org/2019513004/diff/1/third_party/WebKit/Source/modules/webgl/WebGLVertexArrayObjectBase.cpp > File third_party/WebKit/Source/modules/webgl/WebGLVertexArrayObjectBase.cpp > (right): > > https://codereview.chromium.org/2019513004/diff/1/third_party/WebKit/Source/modules/webgl/WebGLVertexArrayObjectBase.cpp#newcode113 ...
4 years, 6 months ago (2016-06-07 04:18:57 UTC) #16
Ken Russell (switch to Gerrit)
https://codereview.chromium.org/2019513004/diff/40001/third_party/WebKit/Source/modules/webgl/WebGLVertexArrayObjectBase.cpp File third_party/WebKit/Source/modules/webgl/WebGLVertexArrayObjectBase.cpp (right): https://codereview.chromium.org/2019513004/diff/40001/third_party/WebKit/Source/modules/webgl/WebGLVertexArrayObjectBase.cpp#newcode107 third_party/WebKit/Source/modules/webgl/WebGLVertexArrayObjectBase.cpp:107: updateAttribBufferBoundStatus(); It should be possible to skip this call ...
4 years, 6 months ago (2016-06-07 04:25:11 UTC) #17
qiankun
https://codereview.chromium.org/2019513004/diff/40001/third_party/WebKit/Source/modules/webgl/WebGLVertexArrayObjectBase.cpp File third_party/WebKit/Source/modules/webgl/WebGLVertexArrayObjectBase.cpp (right): https://codereview.chromium.org/2019513004/diff/40001/third_party/WebKit/Source/modules/webgl/WebGLVertexArrayObjectBase.cpp#newcode107 third_party/WebKit/Source/modules/webgl/WebGLVertexArrayObjectBase.cpp:107: updateAttribBufferBoundStatus(); On 2016/06/07 04:25:11, Ken Russell wrote: > It ...
4 years, 6 months ago (2016-06-07 05:01:35 UTC) #18
Ken Russell (switch to Gerrit)
Thanks for testing. LGTM
4 years, 6 months ago (2016-06-07 05:26:23 UTC) #19
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2019513004/60001
4 years, 6 months ago (2016-06-07 05:28:36 UTC) #21
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-07 07:17:04 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2019513004/60001
4 years, 6 months ago (2016-06-07 08:02:08 UTC) #25
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 6 months ago (2016-06-07 08:09:04 UTC) #26
commit-bot: I haz the power
4 years, 6 months ago (2016-06-07 08:11:28 UTC) #28
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/c95c158d5e3728560af35113ea5fff919ccb8cb2
Cr-Commit-Position: refs/heads/master@{#398246}

Powered by Google App Engine
This is Rietveld 408576698