Chromium Code Reviews

Issue 557593002: Clean up WebMediaPlayerAndroid needs_establish_peer_ (Closed)

Created:
6 years, 3 months ago by boliu
Modified:
6 years, 3 months ago
Reviewers:
whywhat, qinmin, ycheo (away)
CC:
chromium-reviews, posciak+watch_chromium.org, avayvod+watch_chromium.org, jam, mcasas+watch_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, wjia+watch_chromium.org, Ignacio Solla
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Clean up WebMediaPlayerAndroid needs_establish_peer_ needs_establish_peer_ has been used to skip actual estalishing a surface texture peer based on many conditions. Not all places that modify actually checks all these conditions so there are bound to be some bugs. This CL aims to tease out all these different conditions and put them in a single function EstablishSurfaceTexturePeerIfNeeded. This function should be called any time these conditions are changed. Makes for much saner reading. BUG=412578 Committed: https://crrev.com/701cb640efb326aa107b5b0c25dcf91766fe765f Cr-Commit-Position: refs/heads/master@{#294068}

Patch Set 1 #

Total comments: 12

Patch Set 2 : rebase #

Patch Set 3 : review #

Patch Set 4 : OnConnectedToRemoteDevice #

Total comments: 4

Patch Set 5 : remove unset is_playing_ in OnPlaybackComplete #

Patch Set 6 : needs_establish_peer_ #

Total comments: 2

Patch Set 7 : nits #

Unified diffs Side-by-side diffs Stats (+49 lines, -67 lines)
M content/renderer/media/android/webmediaplayer_android.h View 2 chunks +10 lines, -6 lines 0 comments
M content/renderer/media/android/webmediaplayer_android.cc View 13 chunks +39 lines, -61 lines 0 comments

Messages

Total messages: 28 (6 generated)
boliu
PTAL Clean up of this class is waaaaaayyyyy overdue.
6 years, 3 months ago (2014-09-09 00:26:30 UTC) #2
boliu
cc+ igsolla
6 years, 3 months ago (2014-09-09 01:00:17 UTC) #3
ycheo (away)
LGTM. Thanks for handling this. BTW, I'll update the test result 2 days later, since ...
6 years, 3 months ago (2014-09-09 06:38:54 UTC) #4
qinmin
https://codereview.chromium.org/557593002/diff/1/content/renderer/media/android/webmediaplayer_android.cc File content/renderer/media/android/webmediaplayer_android.cc (right): https://codereview.chromium.org/557593002/diff/1/content/renderer/media/android/webmediaplayer_android.cc#newcode166 content/renderer/media/android/webmediaplayer_android.cc:166: needs_external_surface_ = true; why set this to true? if ...
6 years, 3 months ago (2014-09-09 06:39:19 UTC) #5
boliu
The changes we made during our pair programming session is the diff between PS2 and ...
6 years, 3 months ago (2014-09-09 21:17:04 UTC) #6
qinmin
then why not OnDidExitFullscreen()? > Because contract is any states change should lead to calling ...
6 years, 3 months ago (2014-09-09 21:34:22 UTC) #7
qinmin
sorry, i mean OnConnectedToRemoteDevice() On 2014/09/09 21:34:22, qinmin wrote: > then why not OnDidExitFullscreen()? > ...
6 years, 3 months ago (2014-09-09 21:35:54 UTC) #8
boliu
On 2014/09/09 21:35:54, qinmin wrote: > sorry, i mean OnConnectedToRemoteDevice() > > On 2014/09/09 21:34:22, ...
6 years, 3 months ago (2014-09-09 21:37:32 UTC) #9
qinmin
On 2014/09/09 21:37:32, boliu wrote: > On 2014/09/09 21:35:54, qinmin wrote: > > sorry, i ...
6 years, 3 months ago (2014-09-09 21:38:40 UTC) #10
boliu
On 2014/09/09 21:38:40, qinmin wrote: > On 2014/09/09 21:37:32, boliu wrote: > > On 2014/09/09 ...
6 years, 3 months ago (2014-09-09 21:42:03 UTC) #11
boliu
On 2014/09/09 21:42:03, boliu wrote: > On 2014/09/09 21:38:40, qinmin wrote: > > On 2014/09/09 ...
6 years, 3 months ago (2014-09-09 22:01:22 UTC) #12
qinmin
https://codereview.chromium.org/557593002/diff/60001/content/renderer/media/android/webmediaplayer_android.h File content/renderer/media/android/webmediaplayer_android.h (right): https://codereview.chromium.org/557593002/diff/60001/content/renderer/media/android/webmediaplayer_android.h#newcode270 content/renderer/media/android/webmediaplayer_android.h:270: // conditions chances and it is ok to establish ...
6 years, 3 months ago (2014-09-09 22:13:42 UTC) #13
boliu
https://codereview.chromium.org/557593002/diff/60001/content/renderer/media/android/webmediaplayer_android.h File content/renderer/media/android/webmediaplayer_android.h (right): https://codereview.chromium.org/557593002/diff/60001/content/renderer/media/android/webmediaplayer_android.h#newcode270 content/renderer/media/android/webmediaplayer_android.h:270: // conditions chances and it is ok to establish ...
6 years, 3 months ago (2014-09-09 22:35:14 UTC) #14
qinmin
lgtm % nits https://codereview.chromium.org/557593002/diff/100001/content/renderer/media/android/webmediaplayer_android.h File content/renderer/media/android/webmediaplayer_android.h (right): https://codereview.chromium.org/557593002/diff/100001/content/renderer/media/android/webmediaplayer_android.h#newcode408 content/renderer/media/android/webmediaplayer_android.h:408: // This should be unset in ...
6 years, 3 months ago (2014-09-09 22:44:38 UTC) #15
boliu
nits fixed, submitting Thanks for the review, pair programming, and heated debates :p
6 years, 3 months ago (2014-09-09 23:06:34 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/boliu@chromium.org/557593002/120001
6 years, 3 months ago (2014-09-09 23:25:17 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: win_gpu_triggered_tests on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu_triggered_tests/builds/49868)
6 years, 3 months ago (2014-09-10 00:35:04 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/boliu@chromium.org/557593002/120001
6 years, 3 months ago (2014-09-10 01:27:18 UTC) #24
commit-bot: I haz the power
Committed patchset #7 (id:120001) as 55362f76228fb9fce2019b4cfbd042b1636014d5
6 years, 3 months ago (2014-09-10 01:35:22 UTC) #25
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/701cb640efb326aa107b5b0c25dcf91766fe765f Cr-Commit-Position: refs/heads/master@{#294068}
6 years, 3 months ago (2014-09-10 03:57:29 UTC) #26
boliu
A revert of this CL (patchset #7 id:120001) has been created in https://codereview.chromium.org/562803002/ by boliu@chromium.org. ...
6 years, 3 months ago (2014-09-11 00:23:09 UTC) #27
ycheo (away)
6 years, 3 months ago (2014-09-11 07:59:40 UTC) #28
Message was sent while issue was closed.
On 2014/09/11 00:23:09, boliu wrote:
> A revert of this CL (patchset #7 id:120001) has been created in
> https://codereview.chromium.org/562803002/ by mailto:boliu@chromium.org.
> 
> The reason for reverting is: Suspected to break tough_video_cases. See
> crbug.com/412897 for details.
> 
> BUG=412897.

FYI, it's OK that playing MSE and MSE/EME videos in WebView.

Powered by Google App Engine