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

Unified Diff: Source/modules/mediasource/HTMLVideoElementMediaSource.cpp

Issue 291873002: Eliminate MediaPlayer & MediaPlayerClient abstractions (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: updated as per the review comments Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/modules/imagebitmap/ImageBitmapFactories.cpp ('k') | Source/platform/graphics/media/MediaPlayer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/mediasource/HTMLVideoElementMediaSource.cpp
diff --git a/Source/modules/mediasource/HTMLVideoElementMediaSource.cpp b/Source/modules/mediasource/HTMLVideoElementMediaSource.cpp
index 8d3c75d8181015bf7db27df8248bde7162e20531..3300bdb2064c11f320384619418d8af2fbb78aa7 100644
--- a/Source/modules/mediasource/HTMLVideoElementMediaSource.cpp
+++ b/Source/modules/mediasource/HTMLVideoElementMediaSource.cpp
@@ -45,11 +45,11 @@ VideoPlaybackQuality* HTMLVideoElementMediaSource::getVideoPlaybackQuality(HTMLV
unsigned total = 0;
unsigned dropped = 0;
unsigned corrupted = 0;
- MediaPlayer* player = videoElement.player();
- if (player) {
- total = player->decodedFrameCount();
- dropped = player->droppedFrameCount();
- corrupted = player->corruptedFrameCount();
+ blink::WebMediaPlayer* webMediaPlayer = videoElement.webMediaPlayer();
+ if (webMediaPlayer) {
+ total = webMediaPlayer->decodedFrameCount();
+ dropped = webMediaPlayer->droppedFrameCount();
+ corrupted = webMediaPlayer->corruptedFrameCount();
}
return VideoPlaybackQuality::create(videoElement.document(), total, dropped, corrupted);
« no previous file with comments | « Source/modules/imagebitmap/ImageBitmapFactories.cpp ('k') | Source/platform/graphics/media/MediaPlayer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698