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

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

Issue 2243683002: Add OnDurationChange() to RenderClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@media_player_simplified
Patch Set: Fixed typo 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/mojo/clients/mojo_renderer.h ('k') | media/mojo/interfaces/renderer.mojom » ('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 b2145035a0876e7c2481bf256ddf1384ca425710..675809a5e4a26ca8c8232bea3c4560e71d9853b8 100644
--- a/media/mojo/clients/mojo_renderer.cc
+++ b/media/mojo/clients/mojo_renderer.cc
@@ -274,6 +274,11 @@ void MojoRenderer::OnVideoNaturalSizeChange(const gfx::Size& size) {
client_->OnVideoNaturalSizeChange(size);
}
+void MojoRenderer::OnDurationChange(int64_t duration_usec) {
+ DVLOG(2) << __FUNCTION__ << ": duration" << duration_usec;
+ client_->OnDurationChange(base::TimeDelta::FromMicroseconds(duration_usec));
+}
+
void MojoRenderer::OnVideoOpacityChange(bool opaque) {
DVLOG(2) << __FUNCTION__ << ": " << opaque;
DCHECK(task_runner_->BelongsToCurrentThread());
« no previous file with comments | « media/mojo/clients/mojo_renderer.h ('k') | media/mojo/interfaces/renderer.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698