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

Issue 2862443002: Fix bug in virtualized GL context state management upon creation. (Closed)

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

Description

Fix bug in virtualized GL context state management upon creation. Because the first MakeCurrent call against a virtual GL context leaves the real context state indeterminate (since the GLES2Decoder isn't initialized and by definition neither is the GLStateRestorer), force it to be made current again after initialization. This fixes a longstanding bug where if the next GLES2Decoder to do significant work was the same one that was just created, it would do this work with the majority of the real GL context state set to that of the previous virtual GL context. 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/2862443002 Cr-Commit-Position: refs/heads/master@{#469007} Committed: https://chromium.googlesource.com/chromium/src/+/1d44ab0e3d0a7cd05ce1da956bb87a85a8b88174

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -6 lines) Patch
M content/test/gpu/gpu_tests/webgl2_conformance_expectations.py View 1 chunk +0 lines, -6 lines 0 comments Download
M gpu/ipc/service/gpu_command_buffer_stub.h View 1 chunk +3 lines, -0 lines 0 comments Download
M gpu/ipc/service/gpu_command_buffer_stub.cc View 1 chunk +15 lines, -0 lines 1 comment Download

Messages

Total messages: 16 (9 generated)
Ken Russell (switch to Gerrit)
John or Sunny: please review. Thanks. Others: FYI.
3 years, 7 months ago (2017-05-03 00:48:00 UTC) #3
jbauman
https://codereview.chromium.org/2862443002/diff/1/gpu/ipc/service/gpu_command_buffer_stub.cc File gpu/ipc/service/gpu_command_buffer_stub.cc (right): https://codereview.chromium.org/2862443002/diff/1/gpu/ipc/service/gpu_command_buffer_stub.cc#newcode843 gpu/ipc/service/gpu_command_buffer_stub.cc:843: if (!context->MakeCurrent(surface_.get())) { I think this has to go ...
3 years, 7 months ago (2017-05-03 00:53:03 UTC) #4
jbauman
On 2017/05/03 00:53:03, jbauman wrote: > https://codereview.chromium.org/2862443002/diff/1/gpu/ipc/service/gpu_command_buffer_stub.cc > File gpu/ipc/service/gpu_command_buffer_stub.cc (right): > > https://codereview.chromium.org/2862443002/diff/1/gpu/ipc/service/gpu_command_buffer_stub.cc#newcode843 > ...
3 years, 7 months ago (2017-05-03 00:58:34 UTC) #5
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/2862443002/1
3 years, 7 months ago (2017-05-03 16:47:19 UTC) #11
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://chromium.googlesource.com/chromium/src/+/1d44ab0e3d0a7cd05ce1da956bb87a85a8b88174
3 years, 7 months ago (2017-05-03 16:54:21 UTC) #14
Zhenyao Mo
On 2017/05/03 16:54:21, commit-bot: I haz the power wrote: > Committed patchset #1 (id:1) as ...
3 years, 7 months ago (2017-05-03 16:59:11 UTC) #15
Ken Russell (switch to Gerrit)
3 years, 7 months ago (2017-05-03 17:47:10 UTC) #16
Message was sent while issue was closed.
On 2017/05/03 16:59:11, Zhenyao Mo wrote:
> On 2017/05/03 16:54:21, commit-bot: I haz the power wrote:
> > Committed patchset #1 (id:1) as
> >
>
https://chromium.googlesource.com/chromium/src/+/1d44ab0e3d0a7cd05ce1da956bb8...
> 
> Thanks kbr to tracking this down!

Thanks Mo! This was a tricky one.

Powered by Google App Engine
This is Rietveld 408576698