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

Unified Diff: media/blink/webmediaplayer_impl.h

Issue 843863002: Revert current time clamp on ended; clamp paused time instead. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup. Created 5 years, 11 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: media/blink/webmediaplayer_impl.h
diff --git a/media/blink/webmediaplayer_impl.h b/media/blink/webmediaplayer_impl.h
index 07f19320cc89bea4fcbf4fe4835a3800a2172905..7ce3a799ecdeab9fd72d80cc3f72c850d9cdb407 100644
--- a/media/blink/webmediaplayer_impl.h
+++ b/media/blink/webmediaplayer_impl.h
@@ -218,6 +218,10 @@ class MEDIA_EXPORT WebMediaPlayerImpl
void OnCdmAttached(blink::WebContentDecryptionModuleResult result,
bool success);
+ // Updates |paused_time_| to the current media time with consideration for the
+ // |ended_| state by clamping current time to duration upon |ended_|.
+ void UpdatePausedTime();
+
blink::WebLocalFrame* frame_;
// TODO(hclam): get rid of these members and read from the pipeline directly.

Powered by Google App Engine
This is Rietveld 408576698