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

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: Addressed feedback including non-const ref parameters. 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 #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::RegisterDemandCallback(
23 DemandCallback demand_callback) {
24 demand_callback(Demand::kNeutral);
johngro 2016/01/26 23:47:29 You are making a demand callback inside the Regist
dalesat 2016/01/28 18:49:16 Good catch re Prime. I missed that when I added Pr
johngro 2016/02/01 22:38:16 Acknowledged.
25 }
26
27 void NullSink::Prime() {}
28
29 Demand NullSink::SupplyPacket(PacketPtr packet) {
30 return Demand::kNeutral;
31 }
32
33 } // namespace media
34 } // namespace mojo
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698