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

Side by Side Diff: media/mojo/services/mojo_renderer_impl.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_impl.h" 5 #include "media/mojo/services/mojo_renderer_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/callback_helpers.h" 10 #include "base/callback_helpers.h"
11 #include "base/location.h" 11 #include "base/location.h"
12 #include "base/single_thread_task_runner.h" 12 #include "base/single_thread_task_runner.h"
13 #include "media/base/demuxer_stream_provider.h" 13 #include "media/base/demuxer_stream_provider.h"
14 #include "media/base/renderer_client.h" 14 #include "media/base/renderer_client.h"
15 #include "media/base/video_renderer_sink.h" 15 #include "media/base/video_renderer_sink.h"
16 #include "media/mojo/services/mojo_demuxer_stream_impl.h" 16 #include "media/mojo/services/mojo_demuxer_stream_impl.h"
17 #include "media/renderers/video_overlay_factory.h" 17 #include "media/renderers/video_overlay_factory.h"
18 #include "mojo/converters/geometry/geometry_type_converters.h" 18 #include "ui/gfx/geometry/mojo/geometry_type_converters.h"
19 19
20 namespace media { 20 namespace media {
21 21
22 MojoRendererImpl::MojoRendererImpl( 22 MojoRendererImpl::MojoRendererImpl(
23 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, 23 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner,
24 std::unique_ptr<VideoOverlayFactory> video_overlay_factory, 24 std::unique_ptr<VideoOverlayFactory> video_overlay_factory,
25 VideoRendererSink* video_renderer_sink, 25 VideoRendererSink* video_renderer_sink,
26 mojom::RendererPtr remote_renderer) 26 mojom::RendererPtr remote_renderer)
27 : task_runner_(task_runner), 27 : task_runner_(task_runner),
28 video_overlay_factory_(std::move(video_overlay_factory)), 28 video_overlay_factory_(std::move(video_overlay_factory)),
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 void MojoRendererImpl::OnInitialized(bool success) { 216 void MojoRendererImpl::OnInitialized(bool success) {
217 DVLOG(1) << __FUNCTION__; 217 DVLOG(1) << __FUNCTION__;
218 DCHECK(task_runner_->BelongsToCurrentThread()); 218 DCHECK(task_runner_->BelongsToCurrentThread());
219 DCHECK(!init_cb_.is_null()); 219 DCHECK(!init_cb_.is_null());
220 220
221 base::ResetAndReturn(&init_cb_) 221 base::ResetAndReturn(&init_cb_)
222 .Run(success ? PIPELINE_OK : PIPELINE_ERROR_INITIALIZATION_FAILED); 222 .Run(success ? PIPELINE_OK : PIPELINE_ERROR_INITIALIZATION_FAILED);
223 } 223 }
224 224
225 } // namespace media 225 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698