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

Issue 2852353003: Add more strict DCHECKs around context state. (Closed)

Created:
3 years, 7 months ago by Ken Russell (switch to Gerrit)
Modified:
3 years, 7 months ago
Reviewers:
Zhenyao Mo, jbauman, piman
CC:
chromium-reviews, piman+watch_chromium.org, sunnyps, Geoff Lang, ynovikov
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add more strict DCHECKs around context state. Upon processing commands in the GLES2Decoder, assert that the context is current. Make virtual contexts' definition of "current" more strict. This required moving a DCHECK inside the base GLContext class. These aren't needed, but were useful during recent debugging to confirm that the bug wasn't in these areas. BUG=694359 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/2852353003 Cr-Commit-Position: refs/heads/master@{#469115} Committed: https://chromium.googlesource.com/chromium/src/+/a21cb49e77bf727d692bbe8dd8eda85a9d089e93

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -3 lines) Patch
M gpu/command_buffer/service/gl_context_virtual.cc View 1 chunk +4 lines, -2 lines 2 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 1 chunk +1 line, -0 lines 0 comments Download
M ui/gl/gl_context.cc View 2 chunks +1 line, -1 line 0 comments Download

Messages

Total messages: 19 (8 generated)
Ken Russell (switch to Gerrit)
These aren't really needed, but I think they're useful. The change in gl_context.cc to move ...
3 years, 7 months ago (2017-05-03 00:44:12 UTC) #3
Ken Russell (switch to Gerrit)
+zmo Do you think these dchecks would be useful? If not, I'll close this CL.
3 years, 7 months ago (2017-05-03 17:51:10 UTC) #5
Zhenyao Mo
On 2017/05/03 17:51:10, Ken Russell wrote: > +zmo > > Do you think these dchecks ...
3 years, 7 months ago (2017-05-03 18:00:08 UTC) #6
Ken Russell (switch to Gerrit)
On 2017/05/03 18:00:08, Zhenyao Mo wrote: > On 2017/05/03 17:51:10, Ken Russell wrote: > > ...
3 years, 7 months ago (2017-05-03 18:47:43 UTC) #7
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/2852353003/1
3 years, 7 months ago (2017-05-03 18:49:00 UTC) #9
piman
https://codereview.chromium.org/2852353003/diff/1/gpu/command_buffer/service/gl_context_virtual.cc File gpu/command_buffer/service/gl_context_virtual.cc (right): https://codereview.chromium.org/2852353003/diff/1/gpu/command_buffer/service/gl_context_virtual.cc#newcode59 gpu/command_buffer/service/gl_context_virtual.cc:59: shared_context_->current_virtual_context_ == this; One feature of this code is ...
3 years, 7 months ago (2017-05-03 19:47:41 UTC) #11
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://chromium.googlesource.com/chromium/src/+/a21cb49e77bf727d692bbe8dd8eda85a9d089e93
3 years, 7 months ago (2017-05-03 21:00:50 UTC) #14
Zhenyao Mo
https://codereview.chromium.org/2852353003/diff/1/gpu/command_buffer/service/gl_context_virtual.cc File gpu/command_buffer/service/gl_context_virtual.cc (right): https://codereview.chromium.org/2852353003/diff/1/gpu/command_buffer/service/gl_context_virtual.cc#newcode59 gpu/command_buffer/service/gl_context_virtual.cc:59: shared_context_->current_virtual_context_ == this; On 2017/05/03 19:47:41, piman - OOO ...
3 years, 7 months ago (2017-05-03 22:21:34 UTC) #15
piman
On 2017/05/03 22:21:34, Zhenyao Mo wrote: > https://codereview.chromium.org/2852353003/diff/1/gpu/command_buffer/service/gl_context_virtual.cc > File gpu/command_buffer/service/gl_context_virtual.cc (right): > > https://codereview.chromium.org/2852353003/diff/1/gpu/command_buffer/service/gl_context_virtual.cc#newcode59 ...
3 years, 7 months ago (2017-05-03 22:43:40 UTC) #16
Ken Russell (switch to Gerrit)
On 2017/05/03 22:43:40, piman - OOO back 4-27 wrote: > On 2017/05/03 22:21:34, Zhenyao Mo ...
3 years, 7 months ago (2017-05-03 23:05:32 UTC) #18
Ken Russell (switch to Gerrit)
3 years, 7 months ago (2017-05-03 23:06:06 UTC) #19
Message was sent while issue was closed.
A revert of this CL (patchset #1 id:1) has been created in
https://codereview.chromium.org/2859963002/ by kbr@chromium.org.

The reason for reverting is: Breaks an optimization needed on some Android
devices for performance.
.

Powered by Google App Engine
This is Rietveld 408576698