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

Issue 1212823003: Recover from timing problem at exit of video-fullscreen (Closed)

Created:
5 years, 6 months ago by Hugo Holgersson
Modified:
5 years, 5 months ago
Reviewers:
qinmin, boliu
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, posciak+watch_chromium.org, avayvod+watch_chromium.org, jam, mcasas+watch_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, mkwst+moarreviews-renderer_chromium.org, wjia+watch_chromium.org, mlamouri+watch-media_chromium.org, boliu
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Recover from timing problem at exit of video-fullscreen Background: When exiting video fullscreen, UI thread sends two IPC-messages the player's (renderer) thread. 1. MediaPlayerMsg_DidExitFullscreen is sent to tell player to EstablishSurfaceTexturePeer() for inline video. needs_establish_peer_ gets true. 2. SynchronousCompositorFactoryImpl posts a callback to player's ResetStreamTextureProxy(). In *almost* all cases (1) happens before (2). Problem: When (2) happens before (1), (2) does not create a new proxy because needs_establish_peer_ has not yet been set. (1)'s EstablishSurfaceTexturePeer() fails because there is no proxy. Solution: Let (1) do TryCreateStreamTextureProxyIfNeeded() before EstablishSurfaceTexturePeer(). BUG=504800 TEST=See bug Committed: https://crrev.com/93f9419bc378a6c311832c8463685f8a2b6c6ea0 Cr-Commit-Position: refs/heads/master@{#338027}

Patch Set 1 #

Total comments: 7

Patch Set 2 : Factor out private part of ResetStreamTextureProxy() #

Patch Set 3 : Rebased and removed trailing blank line #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -6 lines) Patch
M content/renderer/media/android/webmediaplayer_android.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/media/android/webmediaplayer_android.cc View 1 2 4 chunks +14 lines, -6 lines 0 comments Download

Messages

Total messages: 20 (4 generated)
Hugo Holgersson
@qinmin, I found this timing problem. PTAL. @boliu on CC, FYI, because of ResetStreamTextureProxy() we ...
5 years, 6 months ago (2015-06-26 13:21:53 UTC) #2
qinmin
On 2015/06/26 13:21:53, Hugo Holgersson wrote: > @qinmin, I found this timing problem. PTAL. > ...
5 years, 5 months ago (2015-06-27 23:56:53 UTC) #3
Hugo Holgersson
On 2015/06/27 23:56:53, qinmin wrote: > On 2015/06/26 13:21:53, Hugo Holgersson wrote: > > @qinmin, ...
5 years, 5 months ago (2015-06-29 11:47:27 UTC) #4
qinmin
+boliu for webview
5 years, 5 months ago (2015-07-04 17:11:35 UTC) #6
boliu
uhh, this external ResetStreamTextureProxy thing is webview-only. it's a big hack to avoid some deadlock ...
5 years, 5 months ago (2015-07-06 18:34:20 UTC) #7
Hugo Holgersson
On 2015/07/06 18:34:20, boliu wrote: > uhh, this external ResetStreamTextureProxy thing is webview-only. it's a ...
5 years, 5 months ago (2015-07-06 20:53:00 UTC) #8
Hugo Holgersson
https://codereview.chromium.org/1212823003/diff/1/content/renderer/media/android/webmediaplayer_android.cc File content/renderer/media/android/webmediaplayer_android.cc (right): https://codereview.chromium.org/1212823003/diff/1/content/renderer/media/android/webmediaplayer_android.cc#newcode952 content/renderer/media/android/webmediaplayer_android.cc:952: TryCreateStreamTextureProxyIfNeeded(); On 2015/07/06 18:34:20, boliu wrote: > how would ...
5 years, 5 months ago (2015-07-06 20:53:53 UTC) #9
boliu
https://codereview.chromium.org/1212823003/diff/1/content/renderer/media/android/webmediaplayer_android.cc File content/renderer/media/android/webmediaplayer_android.cc (right): https://codereview.chromium.org/1212823003/diff/1/content/renderer/media/android/webmediaplayer_android.cc#newcode952 content/renderer/media/android/webmediaplayer_android.cc:952: TryCreateStreamTextureProxyIfNeeded(); On 2015/07/06 20:53:53, Hugo Holgersson wrote: > On ...
5 years, 5 months ago (2015-07-06 21:05:48 UTC) #10
Hugo Holgersson
https://codereview.chromium.org/1212823003/diff/1/content/renderer/media/android/webmediaplayer_android.cc File content/renderer/media/android/webmediaplayer_android.cc (right): https://codereview.chromium.org/1212823003/diff/1/content/renderer/media/android/webmediaplayer_android.cc#newcode952 content/renderer/media/android/webmediaplayer_android.cc:952: TryCreateStreamTextureProxyIfNeeded(); On 2015/07/06 21:05:48, boliu wrote: > On 2015/07/06 ...
5 years, 5 months ago (2015-07-06 22:30:46 UTC) #11
boliu
https://codereview.chromium.org/1212823003/diff/1/content/renderer/media/android/webmediaplayer_android.cc File content/renderer/media/android/webmediaplayer_android.cc (right): https://codereview.chromium.org/1212823003/diff/1/content/renderer/media/android/webmediaplayer_android.cc#newcode952 content/renderer/media/android/webmediaplayer_android.cc:952: TryCreateStreamTextureProxyIfNeeded(); On 2015/07/06 22:30:46, Hugo Holgersson wrote: > On ...
5 years, 5 months ago (2015-07-06 23:33:21 UTC) #12
Hugo Holgersson
https://codereview.chromium.org/1212823003/diff/1/content/renderer/media/android/webmediaplayer_android.cc File content/renderer/media/android/webmediaplayer_android.cc (right): https://codereview.chromium.org/1212823003/diff/1/content/renderer/media/android/webmediaplayer_android.cc#newcode952 content/renderer/media/android/webmediaplayer_android.cc:952: TryCreateStreamTextureProxyIfNeeded(); On 2015/07/06 23:33:21, boliu wrote: > On 2015/07/06 ...
5 years, 5 months ago (2015-07-08 13:23:50 UTC) #13
boliu
This looks ok. Deferring to min for review though https://codereview.chromium.org/1212823003/diff/1/content/renderer/media/android/webmediaplayer_android.cc File content/renderer/media/android/webmediaplayer_android.cc (right): https://codereview.chromium.org/1212823003/diff/1/content/renderer/media/android/webmediaplayer_android.cc#newcode952 content/renderer/media/android/webmediaplayer_android.cc:952: ...
5 years, 5 months ago (2015-07-08 15:26:29 UTC) #14
qinmin
lgtm
5 years, 5 months ago (2015-07-08 21:20:45 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1212823003/40001
5 years, 5 months ago (2015-07-09 12:28:14 UTC) #18
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 5 months ago (2015-07-09 13:17:24 UTC) #19
commit-bot: I haz the power
5 years, 5 months ago (2015-07-09 13:18:20 UTC) #20
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/93f9419bc378a6c311832c8463685f8a2b6c6ea0
Cr-Commit-Position: refs/heads/master@{#338027}

Powered by Google App Engine
This is Rietveld 408576698