OLD | NEW |
---|---|
(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 | |
OLD | NEW |