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

Issue 15925007: Virtual context MakeCurrent tweaks. (Closed)

Created:
7 years, 6 months ago by no sievers
Modified:
7 years, 6 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, apatrick_chromium, jonathan.backer
Visibility:
Public.

Description

Virtual context MakeCurrent tweaks. Do not allow GLContextVirtual::MakeCurrent() without a decoder (state restorer), since this only leads to state bugs. For this reason remove the necessity of having a current context during surface destruction (it's ugly anyway, since GLSurface is RefCounted). BUG=248395 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=205481

Patch Set 1 #

Total comments: 3

Patch Set 2 : release surface before context in GLESCmdDecoder::Destroy() #

Total comments: 1

Patch Set 3 : do not require current context during ~GLSurface() #

Patch Set 4 : rebase #

Patch Set 5 : #

Total comments: 2

Patch Set 6 : #

Total comments: 3

Patch Set 7 : #

Patch Set 8 : rebase #

Patch Set 9 : keep explicit surface ref release #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -20 lines) Patch
M content/common/gpu/gpu_command_buffer_stub.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -9 lines 0 comments Download
M content/common/gpu/image_transport_surface_mac.cc View 1 2 3 4 5 6 6 chunks +21 lines, -4 lines 0 comments Download
M gpu/command_buffer/service/gl_context_virtual.cc View 1 2 3 4 1 chunk +4 lines, -7 lines 0 comments Download

Messages

Total messages: 30 (0 generated)
no sievers
ptal
7 years, 6 months ago (2013-05-28 21:47:39 UTC) #1
epenner
On 2013/05/28 21:47:39, Daniel Sievers wrote: > ptal LGTM if you are sure that is ...
7 years, 6 months ago (2013-05-28 22:55:09 UTC) #2
epenner
Missing comments from my last post. https://codereview.chromium.org/15925007/diff/1/content/common/gpu/gpu_command_buffer_stub.cc File content/common/gpu/gpu_command_buffer_stub.cc (right): https://codereview.chromium.org/15925007/diff/1/content/common/gpu/gpu_command_buffer_stub.cc#newcode367 content/common/gpu/gpu_command_buffer_stub.cc:367: surface_ = NULL; ...
7 years, 6 months ago (2013-05-28 22:57:20 UTC) #3
no sievers
https://codereview.chromium.org/15925007/diff/1/content/common/gpu/gpu_command_buffer_stub.cc File content/common/gpu/gpu_command_buffer_stub.cc (right): https://codereview.chromium.org/15925007/diff/1/content/common/gpu/gpu_command_buffer_stub.cc#newcode367 content/common/gpu/gpu_command_buffer_stub.cc:367: surface_ = NULL; On 2013/05/28 22:57:21, epenner wrote: > ...
7 years, 6 months ago (2013-05-28 23:15:31 UTC) #4
epenner
https://codereview.chromium.org/15925007/diff/12001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/15925007/diff/12001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode3200 gpu/command_buffer/service/gles2_cmd_decoder.cc:3200: surface_ = NULL; This looks good but see have_context ...
7 years, 6 months ago (2013-05-28 23:36:56 UTC) #5
no sievers
On 2013/05/28 23:36:56, epenner wrote: > https://codereview.chromium.org/15925007/diff/12001/gpu/command_buffer/service/gles2_cmd_decoder.cc > File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): > > https://codereview.chromium.org/15925007/diff/12001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode3200 > ...
7 years, 6 months ago (2013-05-28 23:58:38 UTC) #6
epenner
> I think if we don't have a context, there is nothing we can do. ...
7 years, 6 months ago (2013-05-29 00:29:37 UTC) #7
no sievers
On 2013/05/29 00:29:37, epenner wrote: > > I think if we don't have a context, ...
7 years, 6 months ago (2013-05-29 16:09:19 UTC) #8
no sievers
@Al/gman: could you take a look? The win_gpu failure seems bogus, my whitespace change is ...
7 years, 6 months ago (2013-05-29 18:48:15 UTC) #9
greggman
lgtm I wonder if we should have GLRealContext : A context that talks to the ...
7 years, 6 months ago (2013-05-30 20:16:22 UTC) #10
no sievers
Since both Eric and you pointed out that the notion of trying to guarantee a ...
7 years, 6 months ago (2013-05-30 21:10:39 UTC) #11
piman
On 2013/05/30 21:10:39, Daniel Sievers wrote: > Since both Eric and you pointed out that ...
7 years, 6 months ago (2013-05-30 21:30:01 UTC) #12
no sievers
On 2013/05/30 21:30:01, piman wrote: > On 2013/05/30 21:10:39, Daniel Sievers wrote: > > Since ...
7 years, 6 months ago (2013-05-31 22:31:07 UTC) #13
no sievers
On 2013/05/31 22:31:07, Daniel Sievers wrote: > On 2013/05/30 21:30:01, piman wrote: > > On ...
7 years, 6 months ago (2013-06-04 23:59:06 UTC) #14
piman
https://codereview.chromium.org/15925007/diff/31001/content/common/gpu/image_transport_surface_mac.cc File content/common/gpu/image_transport_surface_mac.cc (right): https://codereview.chromium.org/15925007/diff/31001/content/common/gpu/image_transport_surface_mac.cc#newcode357 content/common/gpu/image_transport_surface_mac.cc:357: helper_->stub()->AddDestructionObserver(this); Why not do that always in Initialize? Destroy ...
7 years, 6 months ago (2013-06-05 00:05:33 UTC) #15
no sievers
https://codereview.chromium.org/15925007/diff/31001/content/common/gpu/image_transport_surface_mac.cc File content/common/gpu/image_transport_surface_mac.cc (right): https://codereview.chromium.org/15925007/diff/31001/content/common/gpu/image_transport_surface_mac.cc#newcode357 content/common/gpu/image_transport_surface_mac.cc:357: helper_->stub()->AddDestructionObserver(this); On 2013/06/05 00:05:33, piman wrote: > Why not ...
7 years, 6 months ago (2013-06-05 00:19:04 UTC) #16
no sievers
https://codereview.chromium.org/15925007/diff/34003/content/common/gpu/image_transport_surface_mac.cc File content/common/gpu/image_transport_surface_mac.cc (right): https://codereview.chromium.org/15925007/diff/34003/content/common/gpu/image_transport_surface_mac.cc#newcode160 content/common/gpu/image_transport_surface_mac.cc:160: if (!NoOpGLSurfaceCGL::Initialize()) I guess for correctness it should call ...
7 years, 6 months ago (2013-06-05 00:21:16 UTC) #17
piman
lgtm https://codereview.chromium.org/15925007/diff/34003/content/common/gpu/image_transport_surface_mac.cc File content/common/gpu/image_transport_surface_mac.cc (right): https://codereview.chromium.org/15925007/diff/34003/content/common/gpu/image_transport_surface_mac.cc#newcode160 content/common/gpu/image_transport_surface_mac.cc:160: if (!NoOpGLSurfaceCGL::Initialize()) On 2013/06/05 00:21:16, Daniel Sievers wrote: ...
7 years, 6 months ago (2013-06-05 00:33:31 UTC) #18
no sievers
https://codereview.chromium.org/15925007/diff/34003/content/common/gpu/image_transport_surface_mac.cc File content/common/gpu/image_transport_surface_mac.cc (right): https://codereview.chromium.org/15925007/diff/34003/content/common/gpu/image_transport_surface_mac.cc#newcode160 content/common/gpu/image_transport_surface_mac.cc:160: if (!NoOpGLSurfaceCGL::Initialize()) On 2013/06/05 00:33:32, piman wrote: > On ...
7 years, 6 months ago (2013-06-05 00:38:04 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sievers@chromium.org/15925007/41001
7 years, 6 months ago (2013-06-05 00:40:01 UTC) #20
commit-bot: I haz the power
Failed to apply patch for content/common/gpu/gpu_command_buffer_stub.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 6 months ago (2013-06-05 00:40:02 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sievers@chromium.org/15925007/44001
7 years, 6 months ago (2013-06-05 01:00:14 UTC) #22
commit-bot: I haz the power
The commit queue went berserk retrying too often for a seemingly flaky test on builder ...
7 years, 6 months ago (2013-06-05 16:10:20 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sievers@chromium.org/15925007/44001
7 years, 6 months ago (2013-06-05 16:13:04 UTC) #24
no sievers
I had to keep the 'surface_ = NULL' in GpuCommandBufferStub::Destroy() but filed crbug.com/248395 to figure ...
7 years, 6 months ago (2013-06-11 01:18:02 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sievers@chromium.org/15925007/81001
7 years, 6 months ago (2013-06-11 01:18:36 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sievers@chromium.org/15925007/81001
7 years, 6 months ago (2013-06-11 01:49:09 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sievers@chromium.org/15925007/81001
7 years, 6 months ago (2013-06-11 02:55:57 UTC) #29
commit-bot: I haz the power
7 years, 6 months ago (2013-06-11 10:25:14 UTC) #30
Message was sent while issue was closed.
Change committed as 205481

Powered by Google App Engine
This is Rietveld 408576698