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

Issue 2470623002: command buffer: audit validation of ES3 commands (part 3) (Closed)

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

Description

command buffer: audit validation of ES3 commands (part 3) Add some validation, and switch the gating from 'unsafe_es3_apis_enabled()' to 'feature_info_->IsWebGL2OrES3Context()' on the newly audited commands. BUG=654787 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/11c1b392ed36430a40e36a1886e6c672137e468c Cr-Commit-Position: refs/heads/master@{#429059}

Patch Set 1 #

Total comments: 2

Patch Set 2 : resolve a problem thanks to feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -33 lines) Patch
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 1 13 chunks +19 lines, -17 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_unittest_programs.cc View 4 chunks +8 lines, -16 lines 0 comments Download

Messages

Total messages: 33 (24 generated)
Kai Ninomiya
https://codereview.chromium.org/2470623002/diff/1/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/2470623002/diff/1/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode17349 gpu/command_buffer/service/gles2_cmd_decoder.cc:17349: // TODO(kainino): should add a test for this code ...
4 years, 1 month ago (2016-11-01 01:40:29 UTC) #9
piman
https://codereview.chromium.org/2470623002/diff/1/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/2470623002/diff/1/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode17351 gpu/command_buffer/service/gles2_cmd_decoder.cc:17351: samples.size(), static_cast<size_t>(result->GetNumResults())); Drive-by: you don't want to read result->GetNumResults(), ...
4 years, 1 month ago (2016-11-01 02:38:15 UTC) #14
Kai Ninomiya
On 2016/11/01 02:38:15, piman wrote: > https://codereview.chromium.org/2470623002/diff/1/gpu/command_buffer/service/gles2_cmd_decoder.cc > File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): > > https://codereview.chromium.org/2470623002/diff/1/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode17351 > ...
4 years, 1 month ago (2016-11-01 02:58:51 UTC) #15
piman
lgtm
4 years, 1 month ago (2016-11-01 15:52:08 UTC) #24
Kai Ninomiya
zmo, PTAL as well
4 years, 1 month ago (2016-11-01 17:59:14 UTC) #26
Zhenyao Mo
On 2016/11/01 17:59:14, Kai Ninomiya wrote: > zmo, PTAL as well lgtm
4 years, 1 month ago (2016-11-01 18:10:35 UTC) #27
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/2470623002/20001
4 years, 1 month ago (2016-11-01 18:26:48 UTC) #29
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 1 month ago (2016-11-01 18:31:32 UTC) #31
commit-bot: I haz the power
4 years, 1 month ago (2016-11-01 18:54:26 UTC) #33
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/11c1b392ed36430a40e36a1886e6c672137e468c
Cr-Commit-Position: refs/heads/master@{#429059}

Powered by Google App Engine
This is Rietveld 408576698