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

Unified Diff: ppapi/shared_impl/media_stream_buffer_manager.h

Issue 859313002: Pepper: Define PPB_VideoEncoder API + Implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/proxy/video_encoder_resource.cc ('k') | ppapi/shared_impl/media_stream_buffer_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/shared_impl/media_stream_buffer_manager.h
diff --git a/ppapi/shared_impl/media_stream_buffer_manager.h b/ppapi/shared_impl/media_stream_buffer_manager.h
index eafd10cc2e9a7007f6ae4398fd2291cb3fc860d3..f6b700e85866f0993984de6b8885978c27e4dc75 100644
--- a/ppapi/shared_impl/media_stream_buffer_manager.h
+++ b/ppapi/shared_impl/media_stream_buffer_manager.h
@@ -53,12 +53,17 @@ class PPAPI_SHARED_EXPORT MediaStreamBufferManager {
int32_t buffer_size() const { return buffer_size_; }
+ base::SharedMemory* shm() { return shm_.get(); }
+
// Initializes shared memory for buffers transmission.
bool SetBuffers(int32_t number_of_buffers,
int32_t buffer_size,
scoped_ptr<base::SharedMemory> shm,
bool enqueue_all_buffers);
+ // Number of buffers available.
+ int32 BuffersAvailable();
+
// Dequeues a buffer from |buffer_queue_|.
int32_t DequeueBuffer();
@@ -71,6 +76,9 @@ class PPAPI_SHARED_EXPORT MediaStreamBufferManager {
// Gets the buffer address for the given buffer index.
MediaStreamBuffer* GetBufferPointer(int32_t index);
+ // Checks whether |buffer| is contains in the buffer manager.
+ bool ContainsBuffer(MediaStreamBuffer* buffer);
+
private:
Delegate* delegate_;
« no previous file with comments | « ppapi/proxy/video_encoder_resource.cc ('k') | ppapi/shared_impl/media_stream_buffer_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698