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

Side by Side Diff: media/mojo/services/mojo_renderer_service.cc

Issue 2009073003: Move mojo/converters/geometry -> ui/gfx/geometry/mojo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 6 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
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"
11 #include "media/base/renderer.h" 11 #include "media/base/renderer.h"
12 #include "media/mojo/services/demuxer_stream_provider_shim.h" 12 #include "media/mojo/services/demuxer_stream_provider_shim.h"
13 #include "media/mojo/services/mojo_cdm_service_context.h" 13 #include "media/mojo/services/mojo_cdm_service_context.h"
14 #include "mojo/converters/geometry/geometry_type_converters.h" 14 #include "ui/gfx/geometry/mojo/geometry_type_converters.h"
15 15
16 namespace media { 16 namespace media {
17 17
18 // Time interval to update media time. 18 // Time interval to update media time.
19 const int kTimeUpdateIntervalMs = 50; 19 const int kTimeUpdateIntervalMs = 50;
20 20
21 MojoRendererService::MojoRendererService( 21 MojoRendererService::MojoRendererService(
22 base::WeakPtr<MojoCdmServiceContext> mojo_cdm_service_context, 22 base::WeakPtr<MojoCdmServiceContext> mojo_cdm_service_context,
23 std::unique_ptr<media::Renderer> renderer, 23 std::unique_ptr<media::Renderer> renderer,
24 mojo::InterfaceRequest<mojom::Renderer> request) 24 mojo::InterfaceRequest<mojom::Renderer> request)
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 bool success) { 202 bool success) {
203 DVLOG(1) << __FUNCTION__ << "(" << success << ")"; 203 DVLOG(1) << __FUNCTION__ << "(" << success << ")";
204 204
205 if (success) 205 if (success)
206 cdm_ = cdm; 206 cdm_ = cdm;
207 207
208 callback.Run(success); 208 callback.Run(success);
209 } 209 }
210 210
211 } // namespace media 211 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698