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

Unified Diff: media/video/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: media/video/video_decode_accelerator.h
diff --git a/media/video/video_decode_accelerator.h b/media/video/video_decode_accelerator.h
index 53e18a786d569a4ce6565cd43eb795ab545cf186..4371a5404949afa6fc6b05bae62c510f17556a9d 100644
--- a/media/video/video_decode_accelerator.h
+++ b/media/video/video_decode_accelerator.h
@@ -97,9 +97,14 @@ class MEDIA_EXPORT VideoDecodeAccelerator {
// initialization is successful.
// Parameters:
// |profile| is the video stream's format profile.
+ // |min_picture_count| is the minimum number of picture buffers needed for
+ // playback. The decoder should allocate at least this number.
// |client| is the client of this video decoder. The provided pointer must
// be valid until Destroy() is called.
- virtual bool Initialize(VideoCodecProfile profile, Client* client) = 0;
+ virtual bool Initialize(
+ VideoCodecProfile profile,
+ uint32 min_picture_count,
+ Client* client) = 0;
// Decodes given bitstream buffer that contains at most one frame. Once
// decoder is done with processing |bitstream_buffer| it will call

Powered by Google App Engine
This is Rietveld 408576698