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

Issue 428413002: Make async waiter explicit MojoGLES2CreateContext param (Closed)

Created:
6 years, 4 months ago by jamesr
Modified:
6 years, 4 months ago
Reviewers:
piman
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org, cc-bugs_chromium.org, Elliot Glaysher
Project:
chromium
Visibility:
Public.

Description

Make async waiter explicit MojoGLES2CreateContext param Hiding the async_waiter in a static makes it difficult to deal with different threads running potentially different loop types running in the same process. Making this explicit in the create call is much easier. This assumes that callers will want to permantently bind a context with a particular async waiter. In the case that we end up with a caller that wishes to create a context on a thread using one async waiter type and then bind that context to a thread using a different async waiter type we can add another version of MakeCurrent, but that seems like a fairly remote possibility at this point. R=piman@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=289074

Patch Set 1 #

Total comments: 4

Patch Set 2 : lazy init of TLS #

Patch Set 3 : leak #

Patch Set 4 : patch against new thunking system #

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -109 lines) Patch
M mojo/apps/js/bindings/gl/context.cc View 1 2 chunks +5 lines, -4 lines 0 comments Download
M mojo/apps/js/main.cc View 2 chunks +0 lines, -2 lines 0 comments Download
M mojo/cc/context_provider_mojo.cc View 1 2 chunks +5 lines, -4 lines 0 comments Download
M mojo/examples/compositor_app/compositor_app.cc View 1 2 chunks +0 lines, -2 lines 0 comments Download
M mojo/examples/pepper_container_app/graphics_3d_resource.cc View 2 chunks +3 lines, -1 line 0 comments Download
M mojo/examples/pepper_container_app/pepper_container_app.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M mojo/examples/sample_app/gles2_client_impl.cc View 1 2 chunks +6 lines, -4 lines 0 comments Download
M mojo/examples/sample_app/sample_app.cc View 1 2 chunks +0 lines, -2 lines 0 comments Download
M mojo/gles2/gles2_impl.cc View 1 2 3 4 chunks +17 lines, -29 lines 0 comments Download
M mojo/mojo_examples.gypi View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M mojo/public/c/gles2/gles2.h View 1 1 chunk +5 lines, -6 lines 0 comments Download
D mojo/public/cpp/gles2/gles2.h View 1 chunk +0 lines, -24 lines 0 comments Download
M mojo/public/platform/native/gles2_thunks.h View 1 2 3 2 chunks +4 lines, -8 lines 0 comments Download
M mojo/public/platform/native/gles2_thunks.cc View 1 2 3 1 chunk +6 lines, -15 lines 0 comments Download
M mojo/services/surfaces/surfaces_impl.cc View 2 chunks +0 lines, -3 lines 0 comments Download
M mojo/services/view_manager/root_view_manager.h View 2 chunks +0 lines, -3 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
jamesr
piman@ - please review erg@ - FYI, hopefully this doesn't collide too badly with your ...
6 years, 4 months ago (2014-07-31 01:34:39 UTC) #1
jamesr
https://codereview.chromium.org/428413002/diff/1/mojo/gles2/gles2_support_impl.cc File mojo/gles2/gles2_support_impl.cc (right): https://codereview.chromium.org/428413002/diff/1/mojo/gles2/gles2_support_impl.cc#newcode39 mojo/gles2/gles2_support_impl.cc:39: base::ThreadLocalPointer<GLES2ImplForCommandBuffer> g_gles2_interface; this change isn't strictly speaking part of ...
6 years, 4 months ago (2014-07-31 01:36:00 UTC) #2
piman
https://codereview.chromium.org/428413002/diff/1/mojo/gles2/gles2_support_impl.cc File mojo/gles2/gles2_support_impl.cc (right): https://codereview.chromium.org/428413002/diff/1/mojo/gles2/gles2_support_impl.cc#newcode39 mojo/gles2/gles2_support_impl.cc:39: base::ThreadLocalPointer<GLES2ImplForCommandBuffer> g_gles2_interface; On 2014/07/31 01:36:00, jamesr wrote: > this ...
6 years, 4 months ago (2014-07-31 01:53:46 UTC) #3
jamesr
Elliot's patch will get rid of the extra object that needs to be deleted on ...
6 years, 4 months ago (2014-08-07 19:36:58 UTC) #4
jamesr
PS3 leaks the thunk wrapper object on MojoGLES2Destroy calls. Could you review the rest of ...
6 years, 4 months ago (2014-08-07 20:06:43 UTC) #5
piman
lgtm
6 years, 4 months ago (2014-08-07 20:59:41 UTC) #6
jamesr
The CQ bit was checked by jamesr@chromium.org
6 years, 4 months ago (2014-08-12 18:17:05 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamesr@chromium.org/428413002/80001
6 years, 4 months ago (2014-08-12 18:19:40 UTC) #8
commit-bot: I haz the power
6 years, 4 months ago (2014-08-12 21:52:47 UTC) #9
Message was sent while issue was closed.
Change committed as 289074

Powered by Google App Engine
This is Rietveld 408576698