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

Unified Diff: content/common/gpu/media/v4l2_slice_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_slice_video_decode_accelerator.h
diff --git a/content/common/gpu/media/v4l2_slice_video_decode_accelerator.h b/content/common/gpu/media/v4l2_slice_video_decode_accelerator.h
index dd12487bb2ce214991d6c2f57940b4e80790e629..735965f553e761c8d285c8c73d78a800bf9004d9 100644
--- a/content/common/gpu/media/v4l2_slice_video_decode_accelerator.h
+++ b/content/common/gpu/media/v4l2_slice_video_decode_accelerator.h
@@ -43,6 +43,7 @@ class CONTENT_EXPORT V4L2SliceVideoDecodeAccelerator
// media::VideoDecodeAccelerator implementation.
bool Initialize(media::VideoCodecProfile profile,
+ uint32 min_picture_count,
VideoDecodeAccelerator::Client* client) override;
void Decode(const media::BitstreamBuffer& bitstream_buffer) override;
void AssignPictureBuffers(
@@ -326,6 +327,9 @@ class CONTENT_EXPORT V4L2SliceVideoDecodeAccelerator
gfx::Size visible_size_;
gfx::Size coded_size_;
+ // Minimum number of picture buffers to allocate.
+ uint32 min_picture_count_;
+
struct BitstreamBufferRef;
// Input queue of stream buffers coming from the client.
std::queue<linked_ptr<BitstreamBufferRef>> decoder_input_queue_;

Powered by Google App Engine
This is Rietveld 408576698