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

Unified Diff: media/base/video_frame_pool.h

Issue 2643733002: Allow to use {FFmpeg/Vpx}VideoDecoder from a UtilityProcess (Closed)
Patch Set: Rebase Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/base/BUILD.gn ('k') | media/base/video_frame_pool.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/video_frame_pool.h
diff --git a/media/base/video_frame_pool.h b/media/base/video_frame_pool.h
index ebd0e249af2e7a9d4f792c4ccb23657c7b5a214c..6563417552b2904e76dda0c1760ffc8e920fbec4 100644
--- a/media/base/video_frame_pool.h
+++ b/media/base/video_frame_pool.h
@@ -13,6 +13,8 @@
namespace media {
+class VideoFrameProvider;
+
// Simple VideoFrame pool used to avoid unnecessarily allocating and destroying
// VideoFrame objects. The pool manages the memory for the VideoFrame
// returned by CreateFrame(). When one of these VideoFrames is destroyed,
@@ -24,6 +26,8 @@ namespace media {
class MEDIA_EXPORT VideoFramePool {
public:
VideoFramePool();
+ explicit VideoFramePool(
+ std::unique_ptr<VideoFrameProvider> video_frame_provider);
~VideoFramePool();
// Returns a frame from the pool that matches the specified
@@ -37,7 +41,7 @@ class MEDIA_EXPORT VideoFramePool {
const gfx::Size& natural_size,
base::TimeDelta timestamp);
-protected:
+ protected:
friend class VideoFramePoolTest;
// Returns the number of frames in the pool for testing purposes.
@@ -45,6 +49,7 @@ protected:
private:
class PoolImpl;
+ std::unique_ptr<VideoFrameProvider> video_frame_provider_;
scoped_refptr<PoolImpl> pool_;
DISALLOW_COPY_AND_ASSIGN(VideoFramePool);
« no previous file with comments | « media/base/BUILD.gn ('k') | media/base/video_frame_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698