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

Unified Diff: content/common/gpu/media/v4l2_video_decode_accelerator.h

Issue 1207043002: Introduce a client minimum picture pool size (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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
Index: content/common/gpu/media/v4l2_video_decode_accelerator.h
diff --git a/content/common/gpu/media/v4l2_video_decode_accelerator.h b/content/common/gpu/media/v4l2_video_decode_accelerator.h
index 3dfd8606b82445706beed09b2ec7f3484cc52185..caac1078ebd65895e4f8f780c51761b79f3c2908 100644
--- a/content/common/gpu/media/v4l2_video_decode_accelerator.h
+++ b/content/common/gpu/media/v4l2_video_decode_accelerator.h
@@ -84,6 +84,7 @@ class CONTENT_EXPORT V4L2VideoDecodeAccelerator
// media::VideoDecodeAccelerator implementation.
// Note: Initialize() and Destroy() are synchronous.
bool Initialize(media::VideoCodecProfile profile,
+ uint32 min_picture_count,
Client* client) override;
void Decode(const media::BitstreamBuffer& bitstream_buffer) override;
void AssignPictureBuffers(
@@ -451,6 +452,9 @@ class CONTENT_EXPORT V4L2VideoDecodeAccelerator
// Chosen output format.
uint32_t output_format_fourcc_;
+ // The minimum number of picture buffers to allocate.
+ uint32_t min_picture_count_;
+
// The WeakPtrFactory for |weak_this_|.
base::WeakPtrFactory<V4L2VideoDecodeAccelerator> weak_this_factory_;

Powered by Google App Engine
This is Rietveld 408576698