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

Issue 1161533005: Fix crash when backgrounding MojoShell on Android. Fixes issue #186. (Closed)

Created:
5 years, 6 months ago by etiennej
Modified:
5 years, 6 months ago
Reviewers:
jamesr, qsr, blundell
CC:
mojo-reviews_chromium.org, qsr+mojo_chromium.org, yzshen+watch_chromium.org
Base URL:
git@github.com:domokit/mojo.git@master
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

Fix crash when backgrounding MojoShell on Android. Fixes issue #186. When backgrounding MojoShell while running spinning-square.sky (in sky viewer), we had a crash due to CommandBufferImpl binding on one thread, but destroying its binding on another thread (hence the underlying HandleWatcher didn't get removed correctly from the right run loop). This CL fixes the issue by making sure binding and destruction happen on the same thread, control_task_runner. R=qsr@chromium.org Committed: https://chromium.googlesource.com/external/mojo/+/6d38eec257948d6a70815fd810788daac187fcec

Patch Set 1 #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -12 lines) Patch
M services/gles2/command_buffer_impl.h View 1 3 chunks +12 lines, -3 lines 0 comments Download
M services/gles2/command_buffer_impl.cc View 1 2 4 chunks +29 lines, -8 lines 0 comments Download
M services/native_viewport/onscreen_context_provider.cc View 1 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 11 (3 generated)
etiennej
5 years, 6 months ago (2015-06-02 14:50:45 UTC) #3
etiennej
Changes per offline discussion
5 years, 6 months ago (2015-06-03 14:43:55 UTC) #4
blundell
https://codereview.chromium.org/1161533005/diff/40001/services/gles2/command_buffer_impl.cc File services/gles2/command_buffer_impl.cc (right): https://codereview.chromium.org/1161533005/diff/40001/services/gles2/command_buffer_impl.cc#newcode152 services/gles2/command_buffer_impl.cc:152: NotifyAndDestroy(); This method is called on |control_task_runner_| at line ...
5 years, 6 months ago (2015-06-03 14:48:59 UTC) #5
etiennej
https://codereview.chromium.org/1161533005/diff/40001/services/gles2/command_buffer_impl.cc File services/gles2/command_buffer_impl.cc (right): https://codereview.chromium.org/1161533005/diff/40001/services/gles2/command_buffer_impl.cc#newcode152 services/gles2/command_buffer_impl.cc:152: NotifyAndDestroy(); On 2015/06/03 14:48:59, blundell wrote: > This method ...
5 years, 6 months ago (2015-06-03 15:00:40 UTC) #6
blundell
This looks OK to me but I think that James should weigh in as well. ...
5 years, 6 months ago (2015-06-03 16:29:44 UTC) #7
etiennej
James, could you take a look at this change? Thanks.
5 years, 6 months ago (2015-06-03 16:44:22 UTC) #9
qsr
James being out for a month. LGTM. We can always go back to this when ...
5 years, 6 months ago (2015-06-04 09:02:17 UTC) #10
etiennej
5 years, 6 months ago (2015-06-04 09:49:10 UTC) #11
Message was sent while issue was closed.
Committed patchset #3 (id:60001) manually as
6d38eec257948d6a70815fd810788daac187fcec (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698