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 #
Messages
Total messages: 22 (0 generated)
|