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

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

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
« no previous file with comments | « services/media/framework/parts/null_sink.h ('k') | services/media/framework/parts/reader.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "services/media/framework/parts/null_sink.h"
6
7 namespace mojo {
8 namespace media {
9
10 NullSink::NullSink() {}
11
12 NullSink::~NullSink() {}
13
14 bool NullSink::must_allocate() const {
15 return false;
16 }
17
18 Allocator* NullSink::allocator() {
19 return nullptr;
20 }
21
22 void NullSink::SetDemandCallback(DemandCallback demand_callback) {
23 demand_callback_ = demand_callback;
24 }
25
26 void NullSink::Prime() {
27 DCHECK(demand_callback_);
28 demand_callback_(Demand::kNeutral);
29 }
30
31 Demand NullSink::SupplyPacket(PacketPtr packet) {
32 return Demand::kNeutral;
33 }
34
35 } // namespace media
36 } // namespace mojo
OLDNEW
« no previous file with comments | « services/media/framework/parts/null_sink.h ('k') | services/media/framework/parts/reader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698