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

Issue 2762833003: gpu: Use decoder state restoration for scoped_binders (Closed)

Created:
3 years, 9 months ago by Chandan
Modified:
3 years, 8 months ago
CC:
chromium-reviews, piman+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

gpu: Use decoder state restoration for scoped_binders This commit adds decoder state restoration for Scoped {ActiveTexture,UseProgram,VertexAttribArray,BufferBinder}. BUG=None 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/2762833003 Cr-Commit-Position: refs/heads/master@{#460746} Committed: https://chromium.googlesource.com/chromium/src/+/afded6c6f693337fcf57c6de5fb20cdb6a5f8a82

Patch Set 1 #

Total comments: 4

Patch Set 2 : Use GLES2DecoderImpl::RestoreStateForAttrib to restore currently bound buffer #

Patch Set 3 : Added logs to debug content_browsertests failure on MacOS #

Patch Set 4 : Added some more logs and a new API RestoreBufferBinding() #

Patch Set 5 : Removed state_restorer_ for ScopedVertexAttribArray #

Patch Set 6 : Added logs to debug ScopedVertexAttribArray #

Patch Set 7 : Uncomment some code in ScopedVertexAttribArray #

Patch Set 8 : Removed all debug logs #

Patch Set 9 : Fixed MediaColorTest failures on macOS #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+153 lines, -34 lines) Patch
M gpu/command_buffer/service/context_state.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M gpu/command_buffer/service/context_state.cc View 1 2 3 4 5 6 7 2 chunks +15 lines, -0 lines 2 comments Download
M gpu/command_buffer/service/gl_state_restorer_impl.h View 1 2 3 8 1 chunk +4 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/gl_state_restorer_impl.cc View 1 2 3 8 2 chunks +20 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder.h View 1 2 3 8 2 chunks +2 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 1 2 3 4 5 6 7 2 chunks +6 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_mock.h View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_passthrough.h View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_passthrough.cc View 1 2 3 2 chunks +5 lines, -0 lines 0 comments Download
M ui/gl/gl_state_restorer.h View 1 2 3 8 1 chunk +4 lines, -0 lines 0 comments Download
M ui/gl/scoped_binders.h View 4 chunks +20 lines, -4 lines 0 comments Download
M ui/gl/scoped_binders.cc View 1 2 3 4 5 6 7 4 chunks +72 lines, -30 lines 0 comments Download

Messages

Total messages: 29 (11 generated)
Chandan
On 2017/03/21 06:35:58, Chandan wrote: > mailto:c.padhi@samsung.com changed reviewers: > + mailto:a.suchit@chromium.org, mailto:dcastagna@chromium.org, mailto:uzair.jaleel@samsung.com PTAL.
3 years, 9 months ago (2017-03-21 06:38:58 UTC) #4
Chandan
On 2017/03/22 07:25:15, Chandan wrote: > mailto:c.padhi@samsung.com changed reviewers: > + mailto:jbauman@chromium.org, mailto:kbr@chromium.org, mailto:piman@chromium.org @reviewers, ...
3 years, 9 months ago (2017-03-22 07:26:21 UTC) #6
piman
https://codereview.chromium.org/2762833003/diff/1/gpu/command_buffer/service/context_state.cc File gpu/command_buffer/service/context_state.cc (right): https://codereview.chromium.org/2762833003/diff/1/gpu/command_buffer/service/context_state.cc#newcode462 gpu/command_buffer/service/context_state.cc:462: RestoreVertexAttribArray(attrib_index); This needs to pass in |attrib_manager|. RestoreVertexAttribArrays can ...
3 years, 9 months ago (2017-03-22 21:28:26 UTC) #7
Chandan
Uploaded patchset 2. PTAL. Thank you. https://codereview.chromium.org/2762833003/diff/1/gpu/command_buffer/service/context_state.cc File gpu/command_buffer/service/context_state.cc (right): https://codereview.chromium.org/2762833003/diff/1/gpu/command_buffer/service/context_state.cc#newcode462 gpu/command_buffer/service/context_state.cc:462: RestoreVertexAttribArray(attrib_index); Have removed ...
3 years, 9 months ago (2017-03-23 09:19:39 UTC) #8
piman
lgtm
3 years, 9 months ago (2017-03-23 20:28:38 UTC) #9
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/2762833003/20001
3 years, 9 months ago (2017-03-23 20:35:36 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/413627)
3 years, 9 months ago (2017-03-23 21:29:43 UTC) #13
Ken Russell (switch to Gerrit)
On 2017/03/23 21:29:43, commit-bot: I haz the power wrote: > Try jobs failed on following ...
3 years, 9 months ago (2017-03-23 21:41:45 UTC) #14
Chandan
On 2017/03/23 21:41:45, Ken Russell wrote: > On 2017/03/23 21:29:43, commit-bot: I haz the power ...
3 years, 9 months ago (2017-03-24 09:18:56 UTC) #15
Ken Russell (switch to Gerrit)
On 2017/03/24 09:18:56, Chandan wrote: > On 2017/03/23 21:41:45, Ken Russell wrote: > > On ...
3 years, 9 months ago (2017-03-24 18:23:51 UTC) #16
Chandan
On 2017/03/24 18:23:51, Ken Russell wrote: > On 2017/03/24 09:18:56, Chandan wrote: > > On ...
3 years, 9 months ago (2017-03-24 19:47:12 UTC) #17
Chandan
On 2017/03/24 18:23:51, Ken Russell wrote: > On 2017/03/24 09:18:56, Chandan wrote: > > On ...
3 years, 9 months ago (2017-03-24 19:51:05 UTC) #18
Ken Russell (switch to Gerrit)
On 2017/03/24 19:51:05, Chandan wrote: > On 2017/03/24 18:23:51, Ken Russell wrote: > > On ...
3 years, 9 months ago (2017-03-24 21:12:51 UTC) #19
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/2762833003/160001
3 years, 8 months ago (2017-03-30 12:48:58 UTC) #22
commit-bot: I haz the power
Committed patchset #9 (id:160001) as https://chromium.googlesource.com/chromium/src/+/afded6c6f693337fcf57c6de5fb20cdb6a5f8a82
3 years, 8 months ago (2017-03-30 14:01:13 UTC) #26
piman
It's generally recommended to get a new review if you change the patch in non-trivial ...
3 years, 8 months ago (2017-03-30 18:31:43 UTC) #27
Chandan
On 2017/03/30 18:31:43, piman wrote: > It's generally recommended to get a new review if ...
3 years, 8 months ago (2017-03-30 19:21:06 UTC) #28
Chandan
3 years, 8 months ago (2017-03-30 19:22:39 UTC) #29
Message was sent while issue was closed.
https://codereview.chromium.org/2762833003/diff/160001/gpu/command_buffer/ser...
File gpu/command_buffer/service/context_state.cc (right):

https://codereview.chromium.org/2762833003/diff/160001/gpu/command_buffer/ser...
gpu/command_buffer/service/context_state.cc:320: if
(BufferTargetIsSupported(target))
On 2017/03/30 18:31:43, piman wrote:
> Why this logic? Other targets *are* supported at the context level. It would
be
> extremely surprising for users to use a ScopedBufferBinder to not work based
on
> the target

I added this logic to keep it consistent with !state_restorer_ case in
ScopedBufferBinder ctor.
So, target will be passed on to glBindBuffer without any check?

Powered by Google App Engine
This is Rietveld 408576698