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

Issue 291873002: Eliminate MediaPlayer & MediaPlayerClient abstractions (Closed)

Created:
6 years, 7 months ago by Srirama
Modified:
6 years, 7 months ago
CC:
blink-reviews, feature-media-reviews_chromium.org, dglazkov+blink, philipj_slow, blink-reviews-html_chromium.org, eric.carlson_apple.com
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Eliminate MediaPlayer & MediaPlayerClient abstractions BUG=350571 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=174841

Patch Set 1 #

Total comments: 1

Patch Set 2 : Modified as per review comments #

Patch Set 3 : Removed one more unused method #

Total comments: 10

Patch Set 4 : Changed as per the review comments #

Patch Set 5 : Removed unused function declarations #

Total comments: 7

Patch Set 6 : Changed as per review comments #

Patch Set 7 : Modified as per review comments #

Total comments: 1

Patch Set 8 : updated as per the review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -115 lines) Patch
M Source/core/frame/ImageBitmap.cpp View 1 1 chunk +6 lines, -1 line 0 comments Download
M Source/core/html/HTMLMediaElement.cpp View 1 2 3 4 5 6 7 2 chunks +5 lines, -5 lines 0 comments Download
M Source/core/html/HTMLVideoElement.h View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLVideoElement.cpp View 1 2 3 4 5 6 4 chunks +11 lines, -11 lines 0 comments Download
M Source/core/rendering/RenderVideo.cpp View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M Source/modules/imagebitmap/ImageBitmapFactories.cpp View 1 2 3 2 chunks +4 lines, -3 lines 0 comments Download
M Source/modules/mediasource/HTMLVideoElementMediaSource.cpp View 1 2 3 1 chunk +5 lines, -5 lines 0 comments Download
M Source/platform/graphics/media/MediaPlayer.h View 1 2 3 3 chunks +0 lines, -13 lines 0 comments Download
M Source/web/WebMediaPlayerClientImpl.h View 1 2 3 4 2 chunks +0 lines, -9 lines 0 comments Download
M Source/web/WebMediaPlayerClientImpl.cpp View 1 2 3 4 chunks +1 line, -64 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
Srirama
As suggested by Acolwell I have started working on BUG 350571 instead of 100915. As ...
6 years, 7 months ago (2014-05-19 12:57:01 UTC) #1
acolwell GONE FROM CHROMIUM
Please remove the corresponding declarations from MediaPlayer and remove the implementation of those methods from ...
6 years, 7 months ago (2014-05-19 16:55:31 UTC) #2
acolwell GONE FROM CHROMIUM
https://codereview.chromium.org/291873002/diff/1/Source/core/html/HTMLVideoElement.cpp File Source/core/html/HTMLVideoElement.cpp (right): https://codereview.chromium.org/291873002/diff/1/Source/core/html/HTMLVideoElement.cpp#newcode212 Source/core/html/HTMLVideoElement.cpp:212: return webMediaPlayer()->hasVideo() && static_cast<MediaPlayer::ReadyState>(webMediaPlayer()->readyState()) >= MediaPlayer::HaveCurrentData; MediaPlayer is going ...
6 years, 7 months ago (2014-05-19 16:57:53 UTC) #3
Srirama
Removed unused methods as much as possible and cleaned up the code as suggested. I ...
6 years, 7 months ago (2014-05-20 07:44:37 UTC) #4
Srirama
Removed didPassCORSAccessCheck as well which is not used now. PTAL.
6 years, 7 months ago (2014-05-20 13:17:14 UTC) #5
acolwell GONE FROM CHROMIUM
looks pretty good. Just a few comments https://codereview.chromium.org/291873002/diff/40001/Source/core/html/HTMLVideoElement.cpp File Source/core/html/HTMLVideoElement.cpp (right): https://codereview.chromium.org/291873002/diff/40001/Source/core/html/HTMLVideoElement.cpp#newcode46 Source/core/html/HTMLVideoElement.cpp:46: using blink::WebMediaPlayer; ...
6 years, 7 months ago (2014-05-20 16:40:20 UTC) #6
Srirama
Updated according to the review comments. PTAL
6 years, 7 months ago (2014-05-21 03:21:56 UTC) #7
Srirama
Forgot to remove declarations of stats methods. Its done now. PTAL
6 years, 7 months ago (2014-05-21 03:40:21 UTC) #8
acolwell GONE FROM CHROMIUM
lgtm % comments https://codereview.chromium.org/291873002/diff/80001/Source/core/html/HTMLVideoElement.cpp File Source/core/html/HTMLVideoElement.cpp (right): https://codereview.chromium.org/291873002/diff/80001/Source/core/html/HTMLVideoElement.cpp#newcode129 Source/core/html/HTMLVideoElement.cpp:129: if (!webMediaPlayer()) Doesn't this cause a ...
6 years, 7 months ago (2014-05-22 01:06:06 UTC) #9
Srirama
PTAL https://codereview.chromium.org/291873002/diff/80001/Source/core/html/HTMLVideoElement.cpp File Source/core/html/HTMLVideoElement.cpp (right): https://codereview.chromium.org/291873002/diff/80001/Source/core/html/HTMLVideoElement.cpp#newcode129 Source/core/html/HTMLVideoElement.cpp:129: if (!webMediaPlayer()) You are right, there will be ...
6 years, 7 months ago (2014-05-22 06:06:03 UTC) #10
Srirama
PTAL
6 years, 7 months ago (2014-05-22 06:35:18 UTC) #11
acolwell GONE FROM CHROMIUM
https://codereview.chromium.org/291873002/diff/80001/Source/core/html/HTMLVideoElement.cpp File Source/core/html/HTMLVideoElement.cpp (right): https://codereview.chromium.org/291873002/diff/80001/Source/core/html/HTMLVideoElement.cpp#newcode139 Source/core/html/HTMLVideoElement.cpp:139: return static_cast<IntSize>(webMediaPlayer()->naturalSize()).width(); On 2014/05/22 06:06:04, Srirama wrote: > This ...
6 years, 7 months ago (2014-05-22 14:47:45 UTC) #12
Srirama
On 2014/05/22 14:47:45, acolwell wrote: > https://codereview.chromium.org/291873002/diff/80001/Source/core/html/HTMLVideoElement.cpp > File Source/core/html/HTMLVideoElement.cpp (right): > > https://codereview.chromium.org/291873002/diff/80001/Source/core/html/HTMLVideoElement.cpp#newcode139 > ...
6 years, 7 months ago (2014-05-22 15:06:32 UTC) #13
Srirama
Used width and height members to avoid unnecessary casting as suggested.
6 years, 7 months ago (2014-05-23 03:50:03 UTC) #14
Srirama
The CQ bit was checked by srirama.m@samsung.com
6 years, 7 months ago (2014-05-23 03:50:17 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/srirama.m@samsung.com/291873002/120001
6 years, 7 months ago (2014-05-23 03:50:40 UTC) #16
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-23 05:08:24 UTC) #17
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-23 05:22:55 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: blink_presubmit on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/blink_presubmit/builds/6077)
6 years, 7 months ago (2014-05-23 05:22:55 UTC) #19
Srirama
abarth@chromium.org: Please review changes in web/ platform/ and modules/
6 years, 7 months ago (2014-05-23 09:33:18 UTC) #20
Srirama
On 2014/05/23 09:33:18, Srirama wrote: > mailto:abarth@chromium.org: Please review changes in > > web/ platform/ ...
6 years, 7 months ago (2014-05-26 13:20:49 UTC) #21
abarth-chromium
lgtm https://codereview.chromium.org/291873002/diff/120001/Source/core/html/HTMLMediaElement.cpp File Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/291873002/diff/120001/Source/core/html/HTMLMediaElement.cpp#newcode1829 Source/core/html/HTMLMediaElement.cpp:1829: return webMediaPlayer() ? webMediaPlayer()->hasAudio() : false; return webMediaPlayer() ...
6 years, 7 months ago (2014-05-26 19:25:34 UTC) #22
Srirama
Thanks, updated as per the comment.
6 years, 7 months ago (2014-05-27 06:19:21 UTC) #23
Srirama
The CQ bit was checked by srirama.m@samsung.com
6 years, 7 months ago (2014-05-27 06:21:21 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/srirama.m@samsung.com/291873002/140001
6 years, 7 months ago (2014-05-27 06:21:27 UTC) #25
commit-bot: I haz the power
6 years, 7 months ago (2014-05-27 07:39:19 UTC) #26
Message was sent while issue was closed.
Change committed as 174841

Powered by Google App Engine
This is Rietveld 408576698