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

Unified Diff: media/mojo/clients/mojo_renderer.cc

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/filters/video_renderer_algorithm_unittest.cc ('k') | media/mojo/services/mojo_renderer_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/mojo/clients/mojo_renderer.cc
diff --git a/media/mojo/clients/mojo_renderer.cc b/media/mojo/clients/mojo_renderer.cc
index 95ee0c67d725255c45c467a17b984fcd1bec1573..ce2f51437bd546f332c99f6b370008143e0a34ed 100644
--- a/media/mojo/clients/mojo_renderer.cc
+++ b/media/mojo/clients/mojo_renderer.cc
@@ -197,8 +197,12 @@ void MojoRenderer::OnTimeUpdate(int64_t time_usec, int64_t max_time_usec) {
DVLOG(3) << __FUNCTION__ << ": " << time_usec << ", " << max_time_usec;
DCHECK(task_runner_->BelongsToCurrentThread());
- base::AutoLock auto_lock(lock_);
- time_ = base::TimeDelta::FromMicroseconds(time_usec);
+ {
+ base::AutoLock auto_lock(lock_);
+ time_ = base::TimeDelta::FromMicroseconds(time_usec);
+ }
+ // TODO(alokp): Plumb reference time through mojo interface.
+ client_->OnTimeUpdate(time_, time_, base::TimeTicks::Now());
}
void MojoRenderer::OnBufferingStateChange(mojom::BufferingState state) {
« no previous file with comments | « media/filters/video_renderer_algorithm_unittest.cc ('k') | media/mojo/services/mojo_renderer_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698