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

Unified Diff: media/base/renderer_client.h

Issue 2237243002: CL for perf tryjob on linux (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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/base/pipeline_impl.cc ('k') | media/base/time_source.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/renderer_client.h
diff --git a/media/base/renderer_client.h b/media/base/renderer_client.h
index 49b098e70511d3ecc978794e3013c34e7ebd52b6..bb078092281c29cb25262db9c888626dd6c0a496 100644
--- a/media/base/renderer_client.h
+++ b/media/base/renderer_client.h
@@ -36,6 +36,17 @@ class RendererClient {
// Executed for the first video frame and whenever opacity changes.
// Only used if media stream contains video track.
virtual void OnVideoOpacityChange(bool opaque) = 0;
+
+ // Called to report current media time.
+ // |curr_time| and |max_time| can be used to interpolate time between
+ // calls to OnTimeUpdate().
+ // |max_time| is typically the media timestamp of the last audio frame
+ // buffered by the audio hardware.
+ // |max_time| must be greater or equal to |time_usec|.
+ // |capture_time| is the timestamp at which the media times were captured.
+ virtual void OnTimeUpdate(base::TimeDelta curr_time,
+ base::TimeDelta max_time,
+ base::TimeTicks capture_time) = 0;
};
} // namespace media
« no previous file with comments | « media/base/pipeline_impl.cc ('k') | media/base/time_source.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698