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

Issue 730103002: Create "stream texture proxy" before "stream texture" (Closed)

Created:
6 years, 1 month ago by Hugo Holgersson
Modified:
6 years, 1 month ago
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, mkwst+moarreviews-renderer_chromium.org, wjia+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Create "stream texture proxy" before "stream texture" Background: WebMediaPlayerAndroid's constructor does not know video meta data. Meta data is received in OnVideoSizeChanged(). If ShouldUseVideoOverlayForEmbeddedEncryptedVideo answers true WebMediaPlayerAndroid's constructor postpones stream texture creation until OnVideoSizeChanged(). Problem: When constructor sets needs_establish_peer_ = false, TryCreateStreamTextureProxyIfNeeded() does not create a proxy. Without a proxy OnVideoSizeChanged() cannot create a stream texture. Solution: Once we get meta data, create proxy AND texture. BUG=433833 TEST=Manual, 1. Play a Youtube clip (no black frame). 2. Play a purchased movie at Youtube (no black frame). Committed: https://crrev.com/5e431c15487b8e9f749810435eb0ef491af0737e Cr-Commit-Position: refs/heads/master@{#304995}

Patch Set 1 #

Total comments: 1

Patch Set 2 : qinmin's solution #

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

Messages

Total messages: 13 (2 generated)
Hugo Holgersson
6 years, 1 month ago (2014-11-17 15:57:58 UTC) #2
Hugo Holgersson
6 years, 1 month ago (2014-11-17 16:10:29 UTC) #3
boliu
Please do not add so many reviewers. You only need qinmin@ who's the owner of ...
6 years, 1 month ago (2014-11-17 16:16:55 UTC) #4
qinmin
https://codereview.chromium.org/730103002/diff/1/content/renderer/media/android/webmediaplayer_android.cc File content/renderer/media/android/webmediaplayer_android.cc (left): https://codereview.chromium.org/730103002/diff/1/content/renderer/media/android/webmediaplayer_android.cc#oldcode168 content/renderer/media/android/webmediaplayer_android.cc:168: player_manager_->ShouldUseVideoOverlayForEmbeddedEncryptedVideo()) { If this is true, needs_establish_peer_ will be ...
6 years, 1 month ago (2014-11-17 19:06:45 UTC) #5
Hugo Holgersson
On 2014/11/17 19:06:45, qinmin wrote: > https://codereview.chromium.org/730103002/diff/1/content/renderer/media/android/webmediaplayer_android.cc > File content/renderer/media/android/webmediaplayer_android.cc (left): > > https://codereview.chromium.org/730103002/diff/1/content/renderer/media/android/webmediaplayer_android.cc#oldcode168 > ...
6 years, 1 month ago (2014-11-18 10:14:20 UTC) #6
qinmin
On 2014/11/18 10:14:20, Hugo Holgersson wrote: > On 2014/11/17 19:06:45, qinmin wrote: > > > ...
6 years, 1 month ago (2014-11-18 18:55:37 UTC) #7
Hugo Holgersson
On 2014/11/18 18:55:37, qinmin wrote: > On 2014/11/18 10:14:20, Hugo Holgersson wrote: > > On ...
6 years, 1 month ago (2014-11-19 12:25:38 UTC) #8
qinmin
lgtm
6 years, 1 month ago (2014-11-19 18:30:26 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/730103002/20001
6 years, 1 month ago (2014-11-20 08:16:35 UTC) #11
commit-bot: I haz the power
Committed patchset #2 (id:20001)
6 years, 1 month ago (2014-11-20 09:03:55 UTC) #12
commit-bot: I haz the power
6 years, 1 month ago (2014-11-20 09:04:44 UTC) #13
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/5e431c15487b8e9f749810435eb0ef491af0737e
Cr-Commit-Position: refs/heads/master@{#304995}

Powered by Google App Engine
This is Rietveld 408576698