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

Issue 23618031: [Android WebView] Clean up global GL resource pt.1 (Closed)

Created:
7 years, 3 months ago by boliu
Modified:
7 years, 3 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, benm (inactive), mnaganov (inactive), michaelbai
Visibility:
Public.

Description

[Android WebView] Fix video in software mode First ensure that main thread offscreen context is created after on-screen context by keeping count of the number of compositors that are initialized for hardware draw. Also release the compositor thread offscreen context when the last compositor releases hardware draw. Freeing the main thread context is still a TODO. In software mode, still create StreamTextureFactory, but skip creating StreamTextureProxy. WebMediaPlayerAndroid already works in this mode, and it just means in-line video does not work in this case. But video playback is still successful and user is able to enter fullscreen to get working playback. BUG=285349 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=221843

Patch Set 1 #

Total comments: 4

Patch Set 2 : nit #

Patch Set 3 : Do not fail video if cannot create context #

Total comments: 4

Patch Set 4 : Address joth's comments #

Total comments: 2

Patch Set 5 : comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+97 lines, -28 lines) Patch
M content/browser/android/in_process/synchronous_compositor_impl.cc View 1 2 3 5 chunks +78 lines, -17 lines 0 comments Download
M content/renderer/media/android/stream_texture_factory_android_synchronous_impl.cc View 1 2 3 4 3 chunks +5 lines, -0 lines 0 comments Download
M content/renderer/media/android/webmediaplayer_android.cc View 1 2 3 4 2 chunks +4 lines, -1 line 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 1 chunk +10 lines, -10 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
boliu
Fixes the crash in b/10584901, but not everything. After this, if the UI thread loses ...
7 years, 3 months ago (2013-09-04 18:57:29 UTC) #1
no sievers
lgtm https://codereview.chromium.org/23618031/diff/1/content/browser/android/in_process/synchronous_compositor_impl.cc File content/browser/android/in_process/synchronous_compositor_impl.cc (right): https://codereview.chromium.org/23618031/diff/1/content/browser/android/in_process/synchronous_compositor_impl.cc#newcode167 content/browser/android/in_process/synchronous_compositor_impl.cc:167: base::AutoLock lock(offscreen_context_for_compositor_thread_lock_); Does this also need to check ...
7 years, 3 months ago (2013-09-04 22:27:08 UTC) #2
boliu
https://codereview.chromium.org/23618031/diff/1/content/browser/android/in_process/synchronous_compositor_impl.cc File content/browser/android/in_process/synchronous_compositor_impl.cc (right): https://codereview.chromium.org/23618031/diff/1/content/browser/android/in_process/synchronous_compositor_impl.cc#newcode167 content/browser/android/in_process/synchronous_compositor_impl.cc:167: base::AutoLock lock(offscreen_context_for_compositor_thread_lock_); On 2013/09/04 22:27:09, sievers wrote: > Does ...
7 years, 3 months ago (2013-09-04 23:05:57 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/boliu@chromium.org/23618031/5001
7 years, 3 months ago (2013-09-04 23:06:35 UTC) #4
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 3 months ago (2013-09-04 23:27:36 UTC) #5
boliu
Hmm, can't land this as is. Breaks video tests upstream, since it only has software ...
7 years, 3 months ago (2013-09-05 00:45:49 UTC) #6
boliu
Ok, here's what I think is happening with testMediaPlaybackWithoutUserGesture upstream. +Mikhail and Michael for fyi. ...
7 years, 3 months ago (2013-09-05 01:56:44 UTC) #7
boliu
On 2013/09/05 01:56:44, boliu wrote: > With PS3, we still create the video player, but ...
7 years, 3 months ago (2013-09-05 05:51:33 UTC) #8
boliu
Daniel, can you take another look at additional changes in PS3? Again, idea is we ...
7 years, 3 months ago (2013-09-05 19:13:34 UTC) #9
joth
I defer to you & Daniel on overall threading correctness on this.. https://codereview.chromium.org/23618031/diff/21001/content/browser/android/in_process/synchronous_compositor_impl.cc File content/browser/android/in_process/synchronous_compositor_impl.cc ...
7 years, 3 months ago (2013-09-05 20:47:12 UTC) #10
boliu
https://codereview.chromium.org/23618031/diff/21001/content/browser/android/in_process/synchronous_compositor_impl.cc File content/browser/android/in_process/synchronous_compositor_impl.cc (right): https://codereview.chromium.org/23618031/diff/21001/content/browser/android/in_process/synchronous_compositor_impl.cc#newcode150 content/browser/android/in_process/synchronous_compositor_impl.cc:150: if (!can_create_context || On 2013/09/05 20:47:12, joth wrote: > ...
7 years, 3 months ago (2013-09-05 23:21:25 UTC) #11
joth
lgtm
7 years, 3 months ago (2013-09-05 23:24:14 UTC) #12
no sievers
https://codereview.chromium.org/23618031/diff/36001/content/renderer/media/android/stream_texture_factory_android_synchronous_impl.cc File content/renderer/media/android/stream_texture_factory_android_synchronous_impl.cc (right): https://codereview.chromium.org/23618031/diff/36001/content/renderer/media/android/stream_texture_factory_android_synchronous_impl.cc#newcode153 content/renderer/media/android/stream_texture_factory_android_synchronous_impl.cc:153: if (context_provider_ && Can we avoid allowing context_provider_ == ...
7 years, 3 months ago (2013-09-06 01:50:34 UTC) #13
boliu
+qinmin for media change https://codereview.chromium.org/23618031/diff/36001/content/renderer/media/android/stream_texture_factory_android_synchronous_impl.cc File content/renderer/media/android/stream_texture_factory_android_synchronous_impl.cc (right): https://codereview.chromium.org/23618031/diff/36001/content/renderer/media/android/stream_texture_factory_android_synchronous_impl.cc#newcode153 content/renderer/media/android/stream_texture_factory_android_synchronous_impl.cc:153: if (context_provider_ && On 2013/09/06 ...
7 years, 3 months ago (2013-09-06 02:59:26 UTC) #14
qinmin
lgtm
7 years, 3 months ago (2013-09-06 03:23:07 UTC) #15
qinmin
lgtm
7 years, 3 months ago (2013-09-06 03:23:12 UTC) #16
no sievers
lgtm
7 years, 3 months ago (2013-09-06 03:46:20 UTC) #17
boliu
+jamesr for render_view_impl
7 years, 3 months ago (2013-09-06 03:51:50 UTC) #18
boliu
+piman for render_view_impl, since James appears to be busy today
7 years, 3 months ago (2013-09-06 21:19:06 UTC) #19
piman
lgtm
7 years, 3 months ago (2013-09-06 21:23:44 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/boliu@chromium.org/23618031/45001
7 years, 3 months ago (2013-09-06 21:27:38 UTC) #21
commit-bot: I haz the power
7 years, 3 months ago (2013-09-07 01:02:14 UTC) #22
Message was sent while issue was closed.
Change committed as 221843

Powered by Google App Engine
This is Rietveld 408576698