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

Side by Side Diff: services/media/framework_mojo/mojo_consumer.h

Issue 1823833003: Take advantage of MojoGetBufferInformation (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 9 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
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 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 SERVICES_MEDIA_FRAMEWORK_MOJO_MOJO_CONSUMER_H_ 5 #ifndef SERVICES_MEDIA_FRAMEWORK_MOJO_MOJO_CONSUMER_H_
6 #define SERVICES_MEDIA_FRAMEWORK_MOJO_MOJO_CONSUMER_H_ 6 #define SERVICES_MEDIA_FRAMEWORK_MOJO_MOJO_CONSUMER_H_
7 7
8 8
9 #include "base/single_thread_task_runner.h" 9 #include "base/single_thread_task_runner.h"
10 #include "base/task_runner.h" 10 #include "base/task_runner.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 // MediaConsumer client. 45 // MediaConsumer client.
46 void SetPrimeRequestedCallback(const PrimeRequestedCallback& callback); 46 void SetPrimeRequestedCallback(const PrimeRequestedCallback& callback);
47 47
48 // Sets a callback signalling that a flush has been requested from the 48 // Sets a callback signalling that a flush has been requested from the
49 // MediaConsumer client. 49 // MediaConsumer client.
50 void SetFlushRequestedCallback(const FlushRequestedCallback& callback); 50 void SetFlushRequestedCallback(const FlushRequestedCallback& callback);
51 51
52 // MediaConsumer implementation. 52 // MediaConsumer implementation.
53 void SetBuffer( 53 void SetBuffer(
54 ScopedSharedBufferHandle buffer, 54 ScopedSharedBufferHandle buffer,
55 uint64_t size,
56 const SetBufferCallback& callback) override; 55 const SetBufferCallback& callback) override;
57 56
58 void SendPacket(MediaPacketPtr packet, const SendPacketCallback& callback) 57 void SendPacket(MediaPacketPtr packet, const SendPacketCallback& callback)
59 override; 58 override;
60 59
61 void Prime(const PrimeCallback& callback) override; 60 void Prime(const PrimeCallback& callback) override;
62 61
63 void MediaConsumerFlush(const FlushCallback& callback) override; 62 void MediaConsumerFlush(const FlushCallback& callback) override;
64 63
65 // ActiveSource implementation. 64 // ActiveSource implementation.
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 FlushRequestedCallback flush_requested_callback_; 132 FlushRequestedCallback flush_requested_callback_;
134 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; 133 scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
135 MappedSharedBuffer buffer_; 134 MappedSharedBuffer buffer_;
136 SupplyCallback supply_callback_; 135 SupplyCallback supply_callback_;
137 }; 136 };
138 137
139 } // namespace media 138 } // namespace media
140 } // namespace mojo 139 } // namespace mojo
141 140
142 #endif // SERVICES_MEDIA_FRAMEWORK_MOJO_MOJO_CONSUMER_H_ 141 #endif // SERVICES_MEDIA_FRAMEWORK_MOJO_MOJO_CONSUMER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698