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

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

Issue 684963003: Add support for external video renderers in mojo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojo_config
Patch Set: More MSVC... Created 6 years, 1 month 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_impl.cc ('k') | media/mojo/services/mojo_renderer_service.cc » ('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 #ifndef MEDIA_MOJO_SERVICES_MOJO_RENDERER_SERVICE_H_ 5 #ifndef MEDIA_MOJO_SERVICES_MOJO_RENDERER_SERVICE_H_
6 #define MEDIA_MOJO_SERVICES_MOJO_RENDERER_SERVICE_H_ 6 #define MEDIA_MOJO_SERVICES_MOJO_RENDERER_SERVICE_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 21 matching lines...) Expand all
32 class MojoRendererService : public mojo::InterfaceImpl<mojo::MediaRenderer> { 32 class MojoRendererService : public mojo::InterfaceImpl<mojo::MediaRenderer> {
33 public: 33 public:
34 // |connection| is a pointer to the connection back to our embedder. The 34 // |connection| is a pointer to the connection back to our embedder. The
35 // embedder should have configured it (via ConfigureOutgoingConnection) to 35 // embedder should have configured it (via ConfigureOutgoingConnection) to
36 // allow |this| to connect to a sink that will receive decoded data ready 36 // allow |this| to connect to a sink that will receive decoded data ready
37 // for playback. 37 // for playback.
38 explicit MojoRendererService(mojo::ApplicationConnection* connection); 38 explicit MojoRendererService(mojo::ApplicationConnection* connection);
39 ~MojoRendererService() override; 39 ~MojoRendererService() override;
40 40
41 // mojo::MediaRenderer implementation. 41 // mojo::MediaRenderer implementation.
42 void Initialize(mojo::DemuxerStreamPtr streams, 42 void Initialize(mojo::DemuxerStreamPtr audio,
43 mojo::DemuxerStreamPtr video,
43 const mojo::Closure& callback) override; 44 const mojo::Closure& callback) override;
44 void Flush(const mojo::Closure& callback) override; 45 void Flush(const mojo::Closure& callback) override;
45 void StartPlayingFrom(int64_t time_delta_usec) override; 46 void StartPlayingFrom(int64_t time_delta_usec) override;
46 void SetPlaybackRate(float playback_rate) override; 47 void SetPlaybackRate(float playback_rate) override;
47 void SetVolume(float volume) override; 48 void SetVolume(float volume) override;
48 49
49 private: 50 private:
50 enum State { 51 enum State {
51 STATE_UNINITIALIZED, 52 STATE_UNINITIALIZED,
52 STATE_INITIALIZING, 53 STATE_INITIALIZING,
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 93
93 base::WeakPtrFactory<MojoRendererService> weak_factory_; 94 base::WeakPtrFactory<MojoRendererService> weak_factory_;
94 base::WeakPtr<MojoRendererService> weak_this_; 95 base::WeakPtr<MojoRendererService> weak_this_;
95 96
96 DISALLOW_COPY_AND_ASSIGN(MojoRendererService); 97 DISALLOW_COPY_AND_ASSIGN(MojoRendererService);
97 }; 98 };
98 99
99 } // namespace media 100 } // namespace media
100 101
101 #endif // MEDIA_MOJO_SERVICES_MOJO_RENDERER_SERVICE_H_ 102 #endif // MEDIA_MOJO_SERVICES_MOJO_RENDERER_SERVICE_H_
OLDNEW
« no previous file with comments | « media/mojo/services/mojo_renderer_impl.cc ('k') | media/mojo/services/mojo_renderer_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698