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

Issue 11442056: Add external surface rendering mode (Closed)

Created:
8 years ago by wonsik2
Modified:
7 years, 9 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, cc-bugs_chromium.org, jam, feature-media-reviews_chromium.org, wonsik2, no sievers, darin (slow to review), punyabrata1, scherkus (not reviewing), vangelis, dureauv_google.com, Andrew Jeon
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Add external surface rendering mode In Android, some content can only be rendered directly to SurfaceFlinger. Chrome's embedded video rendering model cannot render this kind of content because the video should be composited with web content in GLRenderer. This change adds "render-video-on-external-surface" flag to enable content to be rendered on an external surface. * TODOs - Handle location/size changes. - Figure out a way to determine which content needs to be rendered directly to SurfaceFlinger. - Polish up messaging scheme. BUG=7371621

Patch Set 1 #

Total comments: 16

Patch Set 2 : #

Patch Set 3 : Add getPersonality() #

Total comments: 32

Patch Set 4 : Simple rebase without addressing comments; please hold your reviews. #

Patch Set 5 : Separated GLRenderer change out; refined messaging scheme. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+235 lines, -96 lines) Patch
M content/browser/android/content_video_view.h View 1 2 4 chunks +13 lines, -1 line 0 comments Download
M content/browser/android/content_video_view.cc View 1 2 3 2 chunks +11 lines, -3 lines 0 comments Download
M content/browser/android/media_player_manager_android.h View 1 2 3 4 1 chunk +5 lines, -2 lines 0 comments Download
M content/browser/android/media_player_manager_android.cc View 1 2 3 4 15 chunks +65 lines, -31 lines 0 comments Download
M content/common/media/media_player_messages.h View 1 2 3 4 1 chunk +6 lines, -4 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ContentVideoView.java View 1 2 3 11 chunks +58 lines, -23 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ContentViewRenderView.java View 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/content_switches.h View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
M content/public/common/content_switches.cc View 1 2 3 4 1 chunk +5 lines, -2 lines 0 comments Download
M content/renderer/media/webmediaplayer_proxy_impl_android.h View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M content/renderer/media/webmediaplayer_proxy_impl_android.cc View 1 2 3 4 2 chunks +10 lines, -8 lines 0 comments Download
M webkit/media/android/webmediaplayer_android.h View 1 2 3 4 2 chunks +7 lines, -0 lines 0 comments Download
M webkit/media/android/webmediaplayer_android.cc View 1 2 3 4 3 chunks +16 lines, -6 lines 0 comments Download
M webkit/media/android/webmediaplayer_impl_android.h View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M webkit/media/android/webmediaplayer_impl_android.cc View 1 2 3 4 2 chunks +31 lines, -10 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
ycheo (away)
https://codereview.chromium.org/11442056/diff/1/content/common/media/media_player_messages.h File content/common/media/media_player_messages.h (right): https://codereview.chromium.org/11442056/diff/1/content/common/media/media_player_messages.h#newcode75 content/common/media/media_player_messages.h:75: #if defined(OS_ANDROID) Do we need this? IMO, this file ...
8 years ago (2012-12-13 05:33:43 UTC) #1
danakj
https://codereview.chromium.org/11442056/diff/1/cc/gl_renderer.cc File cc/gl_renderer.cc (right): https://codereview.chromium.org/11442056/diff/1/cc/gl_renderer.cc#newcode944 cc/gl_renderer.cc:944: } else { if you return at the end ...
8 years ago (2012-12-13 05:35:42 UTC) #2
ycheo (away)
https://codereview.chromium.org/11442056/diff/1/content/browser/android/media_player_manager_android.h File content/browser/android/media_player_manager_android.h (right): https://codereview.chromium.org/11442056/diff/1/content/browser/android/media_player_manager_android.h#newcode90 content/browser/android/media_player_manager_android.h:90: int video_view_personality_; IMO, video_view_ has a personality, so this ...
8 years ago (2012-12-13 05:54:59 UTC) #3
wonsik2
PTAL https://codereview.chromium.org/11442056/diff/1/cc/gl_renderer.cc File cc/gl_renderer.cc (right): https://codereview.chromium.org/11442056/diff/1/cc/gl_renderer.cc#newcode944 cc/gl_renderer.cc:944: } else { On 2012/12/13 05:35:42, danakj wrote: ...
8 years ago (2012-12-17 04:36:05 UTC) #4
danakj
+enne for the cc/ changes. i'm not sure if it's problematic that in the early-out ...
8 years ago (2012-12-17 04:41:49 UTC) #5
ycheo (away)
https://codereview.chromium.org/11442056/diff/1/content/browser/android/media_player_manager_android.h File content/browser/android/media_player_manager_android.h (right): https://codereview.chromium.org/11442056/diff/1/content/browser/android/media_player_manager_android.h#newcode90 content/browser/android/media_player_manager_android.h:90: int video_view_personality_; You can get this from ContentVideoView.personality_ (You ...
8 years ago (2012-12-17 04:43:54 UTC) #6
wonsik2
https://codereview.chromium.org/11442056/diff/1/content/browser/android/media_player_manager_android.h File content/browser/android/media_player_manager_android.h (right): https://codereview.chromium.org/11442056/diff/1/content/browser/android/media_player_manager_android.h#newcode90 content/browser/android/media_player_manager_android.h:90: int video_view_personality_; On 2012/12/17 04:43:54, ycheo wrote: > You ...
8 years ago (2012-12-17 05:24:55 UTC) #7
ycheo (away)
lgtm
8 years ago (2012-12-17 06:13:01 UTC) #8
qinmin
https://codereview.chromium.org/11442056/diff/8002/cc/gl_renderer.cc File cc/gl_renderer.cc (right): https://codereview.chromium.org/11442056/diff/8002/cc/gl_renderer.cc#newcode940 cc/gl_renderer.cc:940: // When texture_id == 0, punch a hole instead ...
8 years ago (2012-12-17 19:34:06 UTC) #9
enne (OOO)
https://codereview.chromium.org/11442056/diff/8002/cc/gl_renderer.cc File cc/gl_renderer.cc (right): https://codereview.chromium.org/11442056/diff/8002/cc/gl_renderer.cc#newcode940 cc/gl_renderer.cc:940: // When texture_id == 0, punch a hole instead ...
8 years ago (2012-12-17 20:38:28 UTC) #10
jamesr
8 years ago (2012-12-17 22:32:13 UTC) #11
jamesr
Where's a bug or higher level description of what this change is trying to accomplish? ...
8 years ago (2012-12-17 22:35:15 UTC) #12
jamesr
Looking around a bit it appears this is trying to accomplish a punch-under where the ...
8 years ago (2012-12-17 23:44:09 UTC) #13
Jinsuk Kim (do not use this)
What you describe is correct. What our team(Google TV) is attempting to do is to ...
8 years ago (2012-12-18 00:47:53 UTC) #14
jamesr
On 2012/12/18 00:47:53, jinsukkim wrote: > What you describe is correct. What our team(Google TV) ...
8 years ago (2012-12-19 20:30:35 UTC) #15
wonsik2
CC'ed more people.
7 years, 10 months ago (2013-02-12 01:24:12 UTC) #16
wonsik2
PTAL --- the GLRenderer change is separated to https://codereview.chromium.org/12255032/ for more focused discussion. https://codereview.chromium.org/11442056/diff/8002/cc/gl_renderer.cc File ...
7 years, 10 months ago (2013-02-14 14:56:38 UTC) #17
jamesr
If the video is being rendered externally, then you don't want to notify the compositor ...
7 years, 10 months ago (2013-02-20 08:37:15 UTC) #18
wonsik2
7 years, 9 months ago (2013-03-05 12:40:15 UTC) #19
For Android changes, please review https://codereview.chromium.org/12443003/
instead. Thanks!

Closing this issue.

Powered by Google App Engine
This is Rietveld 408576698