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

Side by Side Diff: media/mojo/services/mojo_renderer_service.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 unified diff | Download patch
« no previous file with comments | « media/mojo/services/mojo_renderer_service.h ('k') | media/renderers/audio_renderer_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "media/mojo/services/mojo_renderer_service.h" 5 #include "media/mojo/services/mojo_renderer_service.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "media/base/media_keys.h" 10 #include "media/base/media_keys.h"
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 void MojoRendererService::OnVideoNaturalSizeChange(const gfx::Size& size) { 132 void MojoRendererService::OnVideoNaturalSizeChange(const gfx::Size& size) {
133 DVLOG(2) << __FUNCTION__ << "(" << size.ToString() << ")"; 133 DVLOG(2) << __FUNCTION__ << "(" << size.ToString() << ")";
134 client_->OnVideoNaturalSizeChange(size); 134 client_->OnVideoNaturalSizeChange(size);
135 } 135 }
136 136
137 void MojoRendererService::OnVideoOpacityChange(bool opaque) { 137 void MojoRendererService::OnVideoOpacityChange(bool opaque) {
138 DVLOG(2) << __FUNCTION__ << "(" << opaque << ")"; 138 DVLOG(2) << __FUNCTION__ << "(" << opaque << ")";
139 client_->OnVideoOpacityChange(opaque); 139 client_->OnVideoOpacityChange(opaque);
140 } 140 }
141 141
142 void MojoRendererService::OnTimeUpdate(base::TimeDelta curr_time,
143 base::TimeDelta max_time,
144 base::TimeTicks capture_time) {
145 // TODO(alokp): Plumb capture time.
146 client_->OnTimeUpdate(curr_time.InMicroseconds(), max_time.InMicroseconds());
147 }
148
142 void MojoRendererService::OnStreamReady( 149 void MojoRendererService::OnStreamReady(
143 const base::Callback<void(bool)>& callback) { 150 const base::Callback<void(bool)>& callback) {
144 DCHECK_EQ(state_, STATE_INITIALIZING); 151 DCHECK_EQ(state_, STATE_INITIALIZING);
145 152
146 renderer_->Initialize( 153 renderer_->Initialize(
147 stream_provider_.get(), this, 154 stream_provider_.get(), this,
148 base::Bind(&MojoRendererService::OnRendererInitializeDone, weak_this_, 155 base::Bind(&MojoRendererService::OnRendererInitializeDone, weak_this_,
149 callback)); 156 callback));
150 } 157 }
151 158
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 bool success) { 209 bool success) {
203 DVLOG(1) << __FUNCTION__ << "(" << success << ")"; 210 DVLOG(1) << __FUNCTION__ << "(" << success << ")";
204 211
205 if (success) 212 if (success)
206 cdm_ = cdm; 213 cdm_ = cdm;
207 214
208 callback.Run(success); 215 callback.Run(success);
209 } 216 }
210 217
211 } // namespace media 218 } // namespace media
OLDNEW
« no previous file with comments | « media/mojo/services/mojo_renderer_service.h ('k') | media/renderers/audio_renderer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698