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

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

Issue 171333003: Pass implementation object to supplemental classes by reference (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 10 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
Index: Source/modules/mediasource/HTMLVideoElementMediaSource.cpp
diff --git a/Source/modules/mediasource/HTMLVideoElementMediaSource.cpp b/Source/modules/mediasource/HTMLVideoElementMediaSource.cpp
index efb416e0ced33c87b06ff8a804e1d3c5650759de..a4c65a2c0605040e7ddd0862bbf361916e3c1285 100644
--- a/Source/modules/mediasource/HTMLVideoElementMediaSource.cpp
+++ b/Source/modules/mediasource/HTMLVideoElementMediaSource.cpp
@@ -40,19 +40,19 @@ HTMLVideoElementMediaSource::HTMLVideoElementMediaSource() { }
HTMLVideoElementMediaSource::~HTMLVideoElementMediaSource() { }
-PassRefPtrWillBeRawPtr<VideoPlaybackQuality> HTMLVideoElementMediaSource::getVideoPlaybackQuality(HTMLVideoElement* videoElement)
+PassRefPtrWillBeRawPtr<VideoPlaybackQuality> HTMLVideoElementMediaSource::getVideoPlaybackQuality(HTMLVideoElement& videoElement)
{
unsigned total = 0;
unsigned dropped = 0;
unsigned corrupted = 0;
- MediaPlayer* player = videoElement->player();
+ MediaPlayer* player = videoElement.player();
if (player) {
total = player->decodedFrameCount();
dropped = player->droppedFrameCount();
corrupted = player->corruptedFrameCount();
}
- return VideoPlaybackQuality::create(videoElement->document(), total, dropped, corrupted);
+ return VideoPlaybackQuality::create(videoElement.document(), total, dropped, corrupted);
}
}

Powered by Google App Engine
This is Rietveld 408576698