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

Side by Side Diff: media/mojo/clients/mojo_renderer.h

Issue 2358413002: media: Use associated interface for mojo RendererClient (Closed)
Patch Set: more test update Created 4 years, 2 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 | « no previous file | media/mojo/clients/mojo_renderer.cc » ('j') | media/mojo/clients/mojo_renderer.cc » ('J')
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 #ifndef MEDIA_MOJO_CLIENTS_MOJO_RENDERER_H_ 5 #ifndef MEDIA_MOJO_CLIENTS_MOJO_RENDERER_H_
6 #define MEDIA_MOJO_CLIENTS_MOJO_RENDERER_H_ 6 #define MEDIA_MOJO_CLIENTS_MOJO_RENDERER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/time/default_tick_clock.h" 11 #include "base/time/default_tick_clock.h"
12 #include "media/base/demuxer_stream.h" 12 #include "media/base/demuxer_stream.h"
13 #include "media/base/renderer.h" 13 #include "media/base/renderer.h"
14 #include "media/base/time_delta_interpolator.h" 14 #include "media/base/time_delta_interpolator.h"
15 #include "media/mojo/interfaces/renderer.mojom.h" 15 #include "media/mojo/interfaces/renderer.mojom.h"
16 #include "mojo/public/cpp/bindings/binding.h" 16 #include "mojo/public/cpp/bindings/associated_binding.h"
17 17
18 namespace base { 18 namespace base {
19 class SingleThreadTaskRunner; 19 class SingleThreadTaskRunner;
20 } 20 }
21 21
22 namespace media { 22 namespace media {
23 23
24 class DemuxerStreamProvider; 24 class DemuxerStreamProvider;
25 class MojoDemuxerStreamImpl; 25 class MojoDemuxerStreamImpl;
26 class VideoOverlayFactory; 26 class VideoOverlayFactory;
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 129
130 // This class is constructed on one thread and used exclusively on another 130 // This class is constructed on one thread and used exclusively on another
131 // thread. This member is used to safely pass the RendererPtr from one thread 131 // thread. This member is used to safely pass the RendererPtr from one thread
132 // to another. It is set in the constructor and is consumed in Initialize(). 132 // to another. It is set in the constructor and is consumed in Initialize().
133 mojom::RendererPtrInfo remote_renderer_info_; 133 mojom::RendererPtrInfo remote_renderer_info_;
134 134
135 // Remote Renderer, bound to |task_runner_| during Initialize(). 135 // Remote Renderer, bound to |task_runner_| during Initialize().
136 mojom::RendererPtr remote_renderer_; 136 mojom::RendererPtr remote_renderer_;
137 137
138 // Binding for RendererClient, bound to the |task_runner_|. 138 // Binding for RendererClient, bound to the |task_runner_|.
139 mojo::Binding<RendererClient> binding_; 139 mojo::AssociatedBinding<RendererClient> client_binding_;
140 140
141 bool encountered_error_ = false; 141 bool encountered_error_ = false;
142 142
143 PipelineStatusCB init_cb_; 143 PipelineStatusCB init_cb_;
144 base::Closure flush_cb_; 144 base::Closure flush_cb_;
145 CdmAttachedCB cdm_attached_cb_; 145 CdmAttachedCB cdm_attached_cb_;
146 146
147 // Lock used to serialize access for |time_interpolator_|. 147 // Lock used to serialize access for |time_interpolator_|.
148 mutable base::Lock lock_; 148 mutable base::Lock lock_;
149 base::DefaultTickClock media_clock_; 149 base::DefaultTickClock media_clock_;
150 media::TimeDeltaInterpolator media_time_interpolator_; 150 media::TimeDeltaInterpolator media_time_interpolator_;
151 151
152 DISALLOW_COPY_AND_ASSIGN(MojoRenderer); 152 DISALLOW_COPY_AND_ASSIGN(MojoRenderer);
153 }; 153 };
154 154
155 } // namespace media 155 } // namespace media
156 156
157 #endif // MEDIA_MOJO_CLIENTS_MOJO_RENDERER_H_ 157 #endif // MEDIA_MOJO_CLIENTS_MOJO_RENDERER_H_
OLDNEW
« no previous file with comments | « no previous file | media/mojo/clients/mojo_renderer.cc » ('j') | media/mojo/clients/mojo_renderer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698