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

Unified Diff: media/mojo/services/mojo_renderer_service.h

Issue 2239243002: Interpolate media time for mojo rendering pipeline. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: moves media-time clamping to PipelineImpl Created 4 years, 3 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 | « media/mojo/services/media_mojo_unittest.cc ('k') | media/mojo/services/mojo_renderer_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/mojo/services/mojo_renderer_service.h
diff --git a/media/mojo/services/mojo_renderer_service.h b/media/mojo/services/mojo_renderer_service.h
index 18130b5efb1af80e5492f07e344949e04e522d21..a99d61da1ccf1d135b2bb6d3544bd29ccd42c905 100644
--- a/media/mojo/services/mojo_renderer_service.h
+++ b/media/mojo/services/mojo_renderer_service.h
@@ -87,8 +87,9 @@ class MEDIA_MOJO_EXPORT MojoRendererService
PipelineStatus status);
// Periodically polls the media time from the renderer and notifies the client
- // if the media time has changed since the last update. If |force| is true,
- // the client is notified even if the time is unchanged.
+ // if the media time has changed since the last update.
+ // If |force| is true, the client is notified even if the time is unchanged.
+ // If |range| is true, an interpolation time range is reported.
void UpdateMediaTime(bool force);
void CancelPeriodicMediaTimeUpdates();
void SchedulePeriodicMediaTimeUpdates();
@@ -106,6 +107,7 @@ class MEDIA_MOJO_EXPORT MojoRendererService
base::WeakPtr<MojoCdmServiceContext> mojo_cdm_service_context_;
State state_;
+ double playback_rate_;
std::unique_ptr<DemuxerStreamProvider> stream_provider_;
« no previous file with comments | « media/mojo/services/media_mojo_unittest.cc ('k') | media/mojo/services/mojo_renderer_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698