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

Issue 2956713003: Replaces VideoLayer with a SurfaceLayer in WebMediaPlayerImpl (Closed)

Created:
3 years, 6 months ago by CJ
Modified:
3 years, 5 months ago
CC:
blink-reviews, blink-reviews-html_chromium.org, blink-reviews-platform-graphics_chromium.org, Rik, chromium-reviews, dglazkov+blink, dshwang, drott+blinkwatch_chromium.org, krit, fmalita+watch_chromium.org, kinuko+watch, pdr+graphicswatchlist_chromium.org, rwlbuis, Stephen Chennney
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Replaces VideoLayer with a SurfaceLayer in WebMediaPlayerImpl This CL creates the necessary interfaces to allow WebMediaPlayer have a SuraceLayer that is able to obtain SurfaceIds via The SurfaceLayerBridge. In this CL you will also find: - Renames CanvasSurfaceLayerBridge to SurfaceLayerBridge. - SurfaceLayerBridge now owns the WebLayer. - A WebSurfaceLayerBridge interface that allows the creation of SurfaceLayerBridge and the access of its WebLayer in media/blink. BUG=726619 Review-Url: https://codereview.chromium.org/2956713003 Cr-Commit-Position: refs/heads/master@{#485060} Committed: https://chromium.googlesource.com/chromium/src/+/7f6009dff057f9a9c23672d642ef0dde90340369

Patch Set 1 #

Patch Set 2 : Creates VideoSurfaceLayerBridge and neccessary interfaces. #

Patch Set 3 : Replaces VideoLayer with SurfaceLayer. #

Total comments: 28

Patch Set 4 : Addresses comments 8-11. #

Patch Set 5 : Addresses comment #13. #

Total comments: 5

Patch Set 6 : Moves some implementation into SurfaceLayerBridge. #

Total comments: 2

Patch Set 7 : Addresses comments 22-26. #

Patch Set 8 : Adds check for bridge's WebLayer. #

Patch Set 9 : Merge branch 'master' into Bridge #

Total comments: 1

Patch Set 10 : Fixes error in deconstructor. #

Total comments: 17

Patch Set 11 : Fix build issue. #

Patch Set 12 : Addresses comment 45 #

Total comments: 14

Patch Set 13 : Addresses comments #56-58. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+149 lines, -289 lines) Patch
M media/blink/webmediaplayer_impl.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +8 lines, -0 lines 0 comments Download
M media/blink/webmediaplayer_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 7 chunks +38 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLCanvasElement.h View 1 2 3 4 5 6 5 chunks +13 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/canvas/HTMLCanvasElementModule.cpp View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +3 lines, -2 lines 0 comments Download
A third_party/WebKit/Source/platform/exported/WebSurfaceLayerBridge.cpp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +15 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/CanvasSurfaceLayerBridge.h View 1 2 3 4 5 6 1 chunk +0 lines, -71 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/CanvasSurfaceLayerBridge.cpp View 1 2 3 4 5 6 1 chunk +0 lines, -143 lines 0 comments Download
A + third_party/WebKit/Source/platform/graphics/SurfaceLayerBridge.h View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +23 lines, -18 lines 0 comments Download
A + third_party/WebKit/Source/platform/graphics/SurfaceLayerBridge.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 6 chunks +24 lines, -28 lines 0 comments Download
M third_party/WebKit/public/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
A third_party/WebKit/public/platform/WebSurfaceLayerBridge.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +22 lines, -0 lines 0 comments Download

Messages

Total messages: 71 (36 generated)
CJ
This CL swaps out the VideoLayer for a SurfaceLayer in WebMediaPlayerImpl. I will update the ...
3 years, 6 months ago (2017-06-24 08:57:14 UTC) #2
liberato (no reviews please)
re your questions: my thoughts on them are here: 1) please see comment in wmpi ...
3 years, 5 months ago (2017-06-26 15:04:03 UTC) #8
enne (OOO)
https://codereview.chromium.org/2956713003/diff/40001/media/blink/webmediaplayer_impl.cc File media/blink/webmediaplayer_impl.cc (right): https://codereview.chromium.org/2956713003/diff/40001/media/blink/webmediaplayer_impl.cc#newcode1356 media/blink/webmediaplayer_impl.cc:1356: video_weblayer_.reset(new cc_blink::WebLayerImpl(bridge_->GetLayer())); On 2017/06/26 at 15:04:03, liberato wrote: > ...
3 years, 5 months ago (2017-06-26 18:35:58 UTC) #9
liberato (no reviews please)
as for my previous comments about moving out of blink, offline conversation with mlamouri results ...
3 years, 5 months ago (2017-06-26 22:39:30 UTC) #10
mlamouri (slow - plz ping)
Some minor comments. It seems pretty close to what we discussed. Will leave the core ...
3 years, 5 months ago (2017-06-27 18:26:38 UTC) #11
CJ
https://codereview.chromium.org/2956713003/diff/40001/media/blink/webmediaplayer_impl.cc File media/blink/webmediaplayer_impl.cc (right): https://codereview.chromium.org/2956713003/diff/40001/media/blink/webmediaplayer_impl.cc#newcode256 media/blink/webmediaplayer_impl.cc:256: base::WrapUnique(blink::WebVideoSurfaceLayerBridge::Create(this))), On 2017/06/26 22:39:30, liberato wrote: > maybe only ...
3 years, 5 months ago (2017-06-29 19:51:34 UTC) #12
enne (OOO)
https://codereview.chromium.org/2956713003/diff/40001/media/blink/webmediaplayer_impl.cc File media/blink/webmediaplayer_impl.cc (right): https://codereview.chromium.org/2956713003/diff/40001/media/blink/webmediaplayer_impl.cc#newcode1356 media/blink/webmediaplayer_impl.cc:1356: video_weblayer_.reset(new cc_blink::WebLayerImpl(bridge_->GetLayer())); On 2017/06/29 at 19:51:33, CJ wrote: > ...
3 years, 5 months ago (2017-06-29 20:29:29 UTC) #13
CJ
https://codereview.chromium.org/2956713003/diff/40001/media/blink/webmediaplayer_impl.cc File media/blink/webmediaplayer_impl.cc (right): https://codereview.chromium.org/2956713003/diff/40001/media/blink/webmediaplayer_impl.cc#newcode1356 media/blink/webmediaplayer_impl.cc:1356: video_weblayer_.reset(new cc_blink::WebLayerImpl(bridge_->GetLayer())); On 2017/06/29 20:29:29, enne wrote: > On ...
3 years, 5 months ago (2017-06-29 20:46:06 UTC) #14
CJ
Made the discussed changes. PTAL.
3 years, 5 months ago (2017-06-29 21:37:48 UTC) #15
enne (OOO)
I'd really like liberato to chime in here about whether this bridge should live in ...
3 years, 5 months ago (2017-06-30 22:14:34 UTC) #16
liberato (no reviews please)
On 2017/06/30 22:14:34, enne wrote: > I'd really like liberato to chime in here about ...
3 years, 5 months ago (2017-06-30 22:18:01 UTC) #17
liberato (no reviews please)
not too many comments, mostly just agreeing with enne@ about similarities in the bridge impls. ...
3 years, 5 months ago (2017-06-30 22:27:17 UTC) #18
CJ
On 2017/06/30 22:14:34, enne wrote: > I'd really like liberato to chime in here about ...
3 years, 5 months ago (2017-06-30 23:22:30 UTC) #19
CJ
On 2017/06/30 22:14:34, enne wrote: > I'd really like liberato to chime in here about ...
3 years, 5 months ago (2017-06-30 23:23:53 UTC) #20
CJ
Ive moved some of the implementation into SurfaceLayerBridge to be shared. If we rather have ...
3 years, 5 months ago (2017-06-30 23:38:14 UTC) #21
enne (OOO)
> The major difference between the two Bridges is that CanvasSurfaceLayerBridge controls a web_layer, where ...
3 years, 5 months ago (2017-06-30 23:46:58 UTC) #22
CJ
On 2017/06/30 23:46:58, enne wrote: > > The major difference between the two Bridges is ...
3 years, 5 months ago (2017-07-01 00:05:26 UTC) #23
liberato (no reviews please)
On 2017/07/01 00:05:26, CJ wrote: > On 2017/06/30 23:46:58, enne wrote: > > > The ...
3 years, 5 months ago (2017-07-01 04:57:03 UTC) #24
CJ
On 2017/07/01 04:57:03, liberato wrote: > On 2017/07/01 00:05:26, CJ wrote: > > On 2017/06/30 ...
3 years, 5 months ago (2017-07-02 00:39:52 UTC) #25
liberato (no reviews please)
On 2017/07/02 00:39:52, CJ wrote: > On 2017/07/01 04:57:03, liberato wrote: > > On 2017/07/01 ...
3 years, 5 months ago (2017-07-05 13:50:09 UTC) #26
CJ
On 2017/07/05 13:50:09, liberato wrote: > On 2017/07/02 00:39:52, CJ wrote: > > On 2017/07/01 ...
3 years, 5 months ago (2017-07-05 22:46:56 UTC) #27
enne (OOO)
Thanks for iterating to get to this point. I think this is really clean. :) ...
3 years, 5 months ago (2017-07-06 01:23:31 UTC) #34
CJ
+senorblanco OWNERS on third_party/WebKit/Source/modules/canvas/HTMLCanvasElementModule.cpp, third_party/WebKit/Source/platform/* +pdr OWNERS on third_party/WebKit/public/*
3 years, 5 months ago (2017-07-06 02:58:23 UTC) #38
pdr.
LGTM for WebKit/public
3 years, 5 months ago (2017-07-06 15:48:55 UTC) #41
Stephen White
Better that Justin take a look at this.
3 years, 5 months ago (2017-07-06 15:50:47 UTC) #44
liberato (no reviews please)
overall looks good! just some relatively superficial comments. thanks -fl https://codereview.chromium.org/2956713003/diff/180001/media/blink/webmediaplayer_impl.cc File media/blink/webmediaplayer_impl.cc (right): https://codereview.chromium.org/2956713003/diff/180001/media/blink/webmediaplayer_impl.cc#newcode271 ...
3 years, 5 months ago (2017-07-06 16:56:18 UTC) #45
CJ
https://codereview.chromium.org/2956713003/diff/180001/media/blink/webmediaplayer_impl.cc File media/blink/webmediaplayer_impl.cc (right): https://codereview.chromium.org/2956713003/diff/180001/media/blink/webmediaplayer_impl.cc#newcode271 media/blink/webmediaplayer_impl.cc:271: if (base::FeatureList::IsEnabled(media::kUseSurfaceLayerForVideo)) On 2017/07/06 16:56:17, liberato wrote: > please ...
3 years, 5 months ago (2017-07-06 20:45:21 UTC) #50
mlamouri (slow - plz ping)
lgtm https://codereview.chromium.org/2956713003/diff/220001/third_party/WebKit/Source/platform/graphics/SurfaceLayerBridge.h File third_party/WebKit/Source/platform/graphics/SurfaceLayerBridge.h (right): https://codereview.chromium.org/2956713003/diff/220001/third_party/WebKit/Source/platform/graphics/SurfaceLayerBridge.h#newcode41 third_party/WebKit/Source/platform/graphics/SurfaceLayerBridge.h:41: explicit SurfaceLayerBridge(SurfaceLayerBridgeObserver*, WebLayerTreeView*); I know you are just ...
3 years, 5 months ago (2017-07-07 14:42:38 UTC) #56
liberato (no reviews please)
media/ lgtm. thanks -fl https://codereview.chromium.org/2956713003/diff/180001/media/blink/webmediaplayer_impl.cc File media/blink/webmediaplayer_impl.cc (right): https://codereview.chromium.org/2956713003/diff/180001/media/blink/webmediaplayer_impl.cc#newcode1758 media/blink/webmediaplayer_impl.cc:1758: return pipeline_metadate_.natural_size; On 2017/07/06 20:45:18, ...
3 years, 5 months ago (2017-07-07 15:26:43 UTC) #57
apacible
Been following along throughout the iterations -- looks nice! lgtm + nits https://codereview.chromium.org/2956713003/diff/100001/third_party/WebKit/Source/platform/graphics/CanvasSurfaceLayerBridge.h File third_party/WebKit/Source/platform/graphics/CanvasSurfaceLayerBridge.h ...
3 years, 5 months ago (2017-07-07 18:25:39 UTC) #58
CJ
~Ping~ Justin Novosad. https://codereview.chromium.org/2956713003/diff/100001/third_party/WebKit/Source/platform/graphics/CanvasSurfaceLayerBridge.h File third_party/WebKit/Source/platform/graphics/CanvasSurfaceLayerBridge.h (right): https://codereview.chromium.org/2956713003/diff/100001/third_party/WebKit/Source/platform/graphics/CanvasSurfaceLayerBridge.h#newcode42 third_party/WebKit/Source/platform/graphics/CanvasSurfaceLayerBridge.h:42: On 2017/07/07 18:25:38, apacible wrote: > ...
3 years, 5 months ago (2017-07-07 18:50:48 UTC) #59
Justin Novosad
lgtm
3 years, 5 months ago (2017-07-07 19:17:01 UTC) #62
Justin Novosad
lgtm
3 years, 5 months ago (2017-07-07 19:17:04 UTC) #63
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2956713003/240001
3 years, 5 months ago (2017-07-07 21:41:25 UTC) #68
commit-bot: I haz the power
3 years, 5 months ago (2017-07-07 21:47:57 UTC) #71
Message was sent while issue was closed.
Committed patchset #13 (id:240001) as
https://chromium.googlesource.com/chromium/src/+/7f6009dff057f9a9c23672d642ef...

Powered by Google App Engine
This is Rietveld 408576698