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

Side by Side Diff: services/media/framework/parts/null_sink.h

Issue 1577953002: Motown in-proc streaming framework used to implement media services. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: sync Created 4 years, 10 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
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef SERVICES_MEDIA_FRAMEWORK_PARTS_NULL_SINK_H_
6 #define SERVICES_MEDIA_FRAMEWORK_PARTS_NULL_SINK_H_
7
8 #include "services/media/framework/models/active_sink.h"
9
10 namespace mojo {
11 namespace media {
12
13 class NullSink;
14
15 typedef SharedPtr<NullSink, ActiveSink> NullSinkPtr;
16
17 // Sink that throws packets away.
18 class NullSink : public ActiveSink {
19 public:
20 static NullSinkPtr Create() { return NullSinkPtr(new NullSink()); }
21
22 ~NullSink() override;
23
24 // ActiveSink implementation.
25 bool must_allocate() const override;
26
27 Allocator* allocator() override;
28
29 void SetDemandCallback(DemandCallback demand_callback) override;
30
31 void Prime() override;
32
33 Demand SupplyPacket(PacketPtr packet) override;
34
35 private:
36 NullSink();
37
38 DemandCallback demand_callback_;
39 };
40
41 } // namespace media
42 } // namespace mojo
43
44 #endif // SERVICES_MEDIA_FRAMEWORK_PARTS_NULL_SINK_H_
OLDNEW
« no previous file with comments | « services/media/framework/parts/lpcm_reformatter.cc ('k') | services/media/framework/parts/null_sink.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698