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

Issue 2435803004: Initialize buffers before allowing access to them. (Closed)

Created:
4 years, 2 months ago by Zhenyao Mo
Modified:
4 years, 1 month ago
Reviewers:
piman
CC:
chromium-reviews, piman+watch_chromium.org, vmiura, yunchao
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Initialize buffers before allowing access to them. Also, refactor buffer access validation a bit to reduce duplicated codes. (Note that this is still part 1 of the work. We have more buffer access paths that we need to put in buffer access validation.) BUG=654201 TEST=gpu_unittests, webgl_conformance R=piman@chromium.org CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel Committed: https://crrev.com/26c35c2e81f97a5b291ebd4d639fc3f1a4cc50e8 Cr-Commit-Position: refs/heads/master@{#427200}

Patch Set 1 #

Patch Set 2 : working #

Patch Set 3 : fix #

Patch Set 4 : fix #

Patch Set 5 : fix #

Patch Set 6 : rebase #

Patch Set 7 : fix #

Patch Set 8 : win failure #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+325 lines, -273 lines) Patch
M content/test/gpu/gpu_tests/webgl2_conformance_expectations.py View 1 2 3 4 5 6 7 2 chunks +2 lines, -9 lines 0 comments Download
M content/test/gpu/gpu_tests/webgl_conformance_expectations.py View 1 2 3 4 5 1 chunk +1 line, -3 lines 0 comments Download
M gpu/command_buffer/service/buffer_manager.h View 1 6 chunks +35 lines, -13 lines 1 comment Download
M gpu/command_buffer/service/buffer_manager.cc View 1 10 chunks +112 lines, -68 lines 0 comments Download
M gpu/command_buffer/service/buffer_manager_unittest.cc View 2 chunks +5 lines, -11 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 1 2 3 4 5 21 chunks +72 lines, -96 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.h View 1 1 chunk +6 lines, -7 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_unittest_buffers.cc View 1 2 3 4 19 chunks +13 lines, -43 lines 0 comments Download
M gpu/command_buffer/service/indexed_buffer_binding_host.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/indexed_buffer_binding_host.cc View 1 2 3 1 chunk +11 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/vertex_attrib_manager.h View 1 3 chunks +2 lines, -1 line 0 comments Download
M gpu/command_buffer/service/vertex_attrib_manager.cc View 1 6 chunks +11 lines, -15 lines 0 comments Download
M gpu/command_buffer/service/vertex_attrib_manager_unittest.cc View 1 2 chunks +0 lines, -3 lines 0 comments Download
M gpu/command_buffer/tests/gl_map_buffer_range_unittest.cc View 1 2 3 5 chunks +51 lines, -4 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 36 (25 generated)
Zhenyao Mo
piman: please review. others: FYI (Note that https://bugs.chromium.org/p/angleproject/issues/detail?id=1555 is created for the new WebGL2 test ...
4 years, 2 months ago (2016-10-22 01:39:03 UTC) #19
Zhenyao Mo
On 2016/10/22 01:39:03, Zhenyao Mo wrote: > piman: please review. > others: FYI > > ...
4 years, 1 month ago (2016-10-24 21:54:53 UTC) #22
Ken Russell (switch to Gerrit)
On 2016/10/24 21:54:53, Zhenyao Mo wrote: > On 2016/10/22 01:39:03, Zhenyao Mo wrote: > > ...
4 years, 1 month ago (2016-10-24 22:04:07 UTC) #23
piman
LGTM, nice cleanup! https://codereview.chromium.org/2435803004/diff/140001/gpu/command_buffer/service/buffer_manager.h File gpu/command_buffer/service/buffer_manager.h (right): https://codereview.chromium.org/2435803004/diff/140001/gpu/command_buffer/service/buffer_manager.h#newcode321 gpu/command_buffer/service/buffer_manager.h:321: uint32_t mapped_buffer_count() const { nit: I ...
4 years, 1 month ago (2016-10-24 22:47:11 UTC) #24
Zhenyao Mo
On 2016/10/24 22:47:11, piman wrote: > LGTM, nice cleanup! > > https://codereview.chromium.org/2435803004/diff/140001/gpu/command_buffer/service/buffer_manager.h > File gpu/command_buffer/service/buffer_manager.h ...
4 years, 1 month ago (2016-10-24 22:54:28 UTC) #25
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/2435803004/140001
4 years, 1 month ago (2016-10-24 22:55:34 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/322816)
4 years, 1 month ago (2016-10-24 23:13:16 UTC) #29
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/2435803004/140001
4 years, 1 month ago (2016-10-24 23:16:11 UTC) #31
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 1 month ago (2016-10-25 01:00:20 UTC) #33
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/26c35c2e81f97a5b291ebd4d639fc3f1a4cc50e8 Cr-Commit-Position: refs/heads/master@{#427200}
4 years, 1 month ago (2016-10-25 01:03:42 UTC) #35
marcheu
4 years, 1 month ago (2016-11-01 20:20:57 UTC) #36
Message was sent while issue was closed.
A revert of this CL (patchset #8 id:140001) has been created in
https://codereview.chromium.org/2469803003/ by marcheu@chromium.org.

The reason for reverting is: This regresses WebGL performance on Chrome OS
devices (see bug).

BUG=661186.

Powered by Google App Engine
This is Rietveld 408576698