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

Issue 2837213003: Restore samplers' state across virtualized GL contexts. (Closed)

Created:
3 years, 8 months ago by Ken Russell (switch to Gerrit)
Modified:
3 years, 8 months ago
Reviewers:
jbauman
CC:
chromium-reviews, jam, darin-cc_chromium.org, piman+watch_chromium.org, vmiura, Zhenyao Mo, Kai Ninomiya, qiankun
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Restore samplers' state across virtualized GL contexts. Tested with new WebGL conformance test being added in https://github.com/KhronosGroup/WebGL/pull/2383 . BUG=713127 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_optional_gpu_tests_rel;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 Review-Url: https://codereview.chromium.org/2837213003 Cr-Commit-Position: refs/heads/master@{#467520} Committed: https://chromium.googlesource.com/chromium/src/+/69c721ec714b0650dec773173ef4be5a25347a49

Patch Set 1 #

Total comments: 2

Patch Set 2 : Addressed review feedback from jbauman. #

Total comments: 2

Patch Set 3 : Add unit tests covering restoration of sampler state. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+159 lines, -26 lines) Patch
M content/test/gpu/gpu_tests/webgl2_conformance_expectations.py View 1 2 1 chunk +0 lines, -3 lines 0 comments Download
M gpu/command_buffer/service/context_state.h View 2 chunks +3 lines, -1 line 0 comments Download
M gpu/command_buffer/service/context_state.cc View 1 3 chunks +20 lines, -2 lines 0 comments Download
M gpu/command_buffer/service/gl_state_restorer_impl.h View 1 chunk +1 line, -1 line 0 comments Download
M gpu/command_buffer/service/gl_state_restorer_impl.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder.h View 1 chunk +1 line, -1 line 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_mock.h View 1 chunk +2 lines, -2 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_passthrough.h View 1 chunk +1 line, -1 line 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_passthrough.cc View 1 chunk +1 line, -1 line 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_unittest_context_state.cc View 1 2 11 chunks +118 lines, -9 lines 0 comments Download
M ui/gl/gl_state_restorer.h View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 22 (13 generated)
Ken Russell (switch to Gerrit)
John: please review. Thanks. Others: FYI. Note: it didn't seem feasible to test this with ...
3 years, 8 months ago (2017-04-25 22:34:01 UTC) #3
jbauman
https://codereview.chromium.org/2837213003/diff/1/gpu/command_buffer/service/context_state.cc File gpu/command_buffer/service/context_state.cc (right): https://codereview.chromium.org/2837213003/diff/1/gpu/command_buffer/service/context_state.cc#newcode296 gpu/command_buffer/service/context_state.cc:296: if (cur_id != prev_id) { "if (!prev_state || cur_id ...
3 years, 8 months ago (2017-04-25 22:47:07 UTC) #4
Ken Russell (switch to Gerrit)
Please feel free to push me to write more/better tests for this. I feel bad ...
3 years, 8 months ago (2017-04-26 01:02:25 UTC) #5
jbauman
https://codereview.chromium.org/2837213003/diff/20001/gpu/command_buffer/service/gles2_cmd_decoder_unittest_context_state.cc File gpu/command_buffer/service/gles2_cmd_decoder_unittest_context_state.cc (right): https://codereview.chromium.org/2837213003/diff/20001/gpu/command_buffer/service/gles2_cmd_decoder_unittest_context_state.cc#newcode142 gpu/command_buffer/service/gles2_cmd_decoder_unittest_context_state.cc:142: TEST_P(GLES2DecoderRestoreStateTest, NullPreviousState) { Could you modify these these tests ...
3 years, 8 months ago (2017-04-26 01:22:45 UTC) #8
Ken Russell (switch to Gerrit)
Unit tests added. Please re-review. Thanks. https://codereview.chromium.org/2837213003/diff/20001/gpu/command_buffer/service/gles2_cmd_decoder_unittest_context_state.cc File gpu/command_buffer/service/gles2_cmd_decoder_unittest_context_state.cc (right): https://codereview.chromium.org/2837213003/diff/20001/gpu/command_buffer/service/gles2_cmd_decoder_unittest_context_state.cc#newcode142 gpu/command_buffer/service/gles2_cmd_decoder_unittest_context_state.cc:142: TEST_P(GLES2DecoderRestoreStateTest, NullPreviousState) { ...
3 years, 8 months ago (2017-04-26 21:36:35 UTC) #11
jbauman
lgtm, thanks for adding the tests!
3 years, 8 months ago (2017-04-26 21:40:09 UTC) #14
Ken Russell (switch to Gerrit)
On 2017/04/26 21:40:09, jbauman wrote: > lgtm, thanks for adding the tests! Thanks for pushing ...
3 years, 8 months ago (2017-04-26 21:48:36 UTC) #15
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/2837213003/40001
3 years, 8 months ago (2017-04-26 23:46:33 UTC) #19
commit-bot: I haz the power
3 years, 8 months ago (2017-04-26 23:59:01 UTC) #22
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/69c721ec714b0650dec773173ef4...

Powered by Google App Engine
This is Rietveld 408576698