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

Unified Diff: media/renderers/renderer_impl.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/renderers/audio_renderer_impl_unittest.cc ('k') | media/renderers/renderer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/renderers/renderer_impl.h
diff --git a/media/renderers/renderer_impl.h b/media/renderers/renderer_impl.h
index 0752805fc118ebd6ecb374db25ab089773666ca4..033e5bde2d2d1e2e33ae29530346b3a8b81a96db 100644
--- a/media/renderers/renderer_impl.h
+++ b/media/renderers/renderer_impl.h
@@ -16,6 +16,7 @@
#include "base/time/clock.h"
#include "base/time/default_tick_clock.h"
#include "base/time/time.h"
+#include "base/timer/timer.h"
#include "media/base/buffering_state.h"
#include "media/base/decryptor.h"
#include "media/base/demuxer_stream.h"
@@ -147,6 +148,14 @@ class MEDIA_EXPORT RendererImpl : public Renderer {
void OnWaitingForDecryptionKey();
void OnVideoNaturalSizeChange(const gfx::Size& size);
void OnVideoOpacityChange(bool opaque);
+ void OnTimeUpdate(base::TimeDelta curr_time,
+ base::TimeDelta max_time,
+ base::TimeTicks capture_time);
+
+ // Periodically polls the media time from |time_source_| to notify |client_|.
+ void UpdateMediaTime();
+ void SchedulePeriodicMediaTimeUpdates();
+ void CancelPeriodicMediaTimeUpdates();
State state_;
@@ -169,6 +178,7 @@ class MEDIA_EXPORT RendererImpl : public Renderer {
TimeSource* time_source_;
std::unique_ptr<WallClockTimeSource> wall_clock_time_source_;
bool time_ticking_;
+ base::RepeatingTimer time_update_timer_;
double playback_rate_;
// The time to start playback from after starting/seeking has completed.
« no previous file with comments | « media/renderers/audio_renderer_impl_unittest.cc ('k') | media/renderers/renderer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698