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

Issue 689633003: Improve context loss error handling (Closed)

Created:
6 years, 1 month ago by oetuaho-nv
Modified:
6 years, 1 month ago
CC:
chromium-reviews, piman+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@lkgr
Project:
chromium
Visibility:
Public.

Description

Improve context loss error handling This patch implements interaction with KHR_robustness. It's especially concerned with handling CONTEXT_LOST_KHR errors: as soon as one is encountered, the normal context loss handling code is triggered, with the addition that context guilt information is queried from GL. The patch fixes asserts caused by CONTEXT_LOST_KHR errors in debug mode, which should help with further development, and hides CONTEXT_LOST_KHR errors from command buffer clients which are not supposed to see them. For plumbing, bindings are added for the KHR_robustness API entry points, and command buffer autogenerated files are updated so that GLES2Util::GetStringEnum works with CONTEXT_LOST_KHR. Redundant LoseContext call that was called on the context after LoseContext was already called on the whole context group is removed from GLES2CommandDecoderImpl::OnOutOfMemoryError. The behavior that the guilty context is unknown when an out of memory error is generated is kept, as it does not make sense to point the finger at a specific context on an when it is not known which context was actually consuming the most memory. BUG=428332 Committed: https://crrev.com/37cc50e7e5f15299040d1b535929d0212aa06b9a Cr-Commit-Position: refs/heads/master@{#302249}

Patch Set 1 #

Total comments: 7

Patch Set 2 : Removed command buffer autogenerated files update and addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -10 lines) Patch
M gpu/command_buffer/common/gles2_cmd_utils.cc View 3 chunks +6 lines, -1 line 0 comments Download
M gpu/command_buffer/service/error_state.h View 1 chunk +1 line, -0 lines 0 comments Download
M gpu/command_buffer/service/error_state.cc View 5 chunks +18 lines, -4 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 1 4 chunks +23 lines, -1 line 0 comments Download
M ui/gl/generate_bindings.py View 1 chunk +3 lines, -1 line 0 comments Download
M ui/gl/gl_bindings.h View 1 chunk +12 lines, -0 lines 0 comments Download
M ui/gl/gl_gl_api_implementation.cc View 1 1 chunk +8 lines, -3 lines 0 comments Download

Messages

Total messages: 12 (3 generated)
oetuaho-nv
Please review. There are still problems in this area after this patch, including lack of ...
6 years, 1 month ago (2014-10-29 14:56:16 UTC) #2
Zhenyao Mo
Mostly look good. Also add kbr. https://codereview.chromium.org/689633003/diff/1/gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h File gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h (right): https://codereview.chromium.org/689633003/diff/1/gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h#newcode16 gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h:16: 0x9260, Most changes ...
6 years, 1 month ago (2014-10-29 17:46:31 UTC) #4
Ken Russell (switch to Gerrit)
lgtm https://codereview.chromium.org/689633003/diff/1/gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h File gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h (right): https://codereview.chromium.org/689633003/diff/1/gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h#newcode16 gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h:16: 0x9260, On 2014/10/29 17:46:31, Zhenyao Mo wrote: > ...
6 years, 1 month ago (2014-10-29 22:21:21 UTC) #5
no sievers
lgtm with the other's comments addressed. https://codereview.chromium.org/689633003/diff/1/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/689633003/diff/1/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode9741 gpu/command_buffer/service/gles2_cmd_decoder.cc:9741: // TODO(oetuaho@nvidia.com): This ...
6 years, 1 month ago (2014-10-29 23:35:33 UTC) #6
oetuaho-nv
I split the changes to autogenerated files to this patch: https://codereview.chromium.org/690753005/ I'll update this one ...
6 years, 1 month ago (2014-10-30 09:17:15 UTC) #7
oetuaho-nv
Review comments addressed, since the changes were relatively trivial I'll proceed to commit.
6 years, 1 month ago (2014-10-31 10:22:40 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/689633003/20001
6 years, 1 month ago (2014-10-31 10:22:53 UTC) #10
commit-bot: I haz the power
Committed patchset #2 (id:20001)
6 years, 1 month ago (2014-10-31 11:19:28 UTC) #11
commit-bot: I haz the power
6 years, 1 month ago (2014-10-31 11:20:33 UTC) #12
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/37cc50e7e5f15299040d1b535929d0212aa06b9a
Cr-Commit-Position: refs/heads/master@{#302249}

Powered by Google App Engine
This is Rietveld 408576698