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

Unified Diff: ppapi/cpp/video_decoder.h

Issue 1207043002: Introduce a client minimum picture pool size (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moved constant to shared header, validate min_picture_size now in resource proxy as well as host co… Created 5 years, 4 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/c/ppb_video_decoder.h ('k') | ppapi/cpp/video_decoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/video_decoder.h
diff --git a/ppapi/cpp/video_decoder.h b/ppapi/cpp/video_decoder.h
index 60be572cf89c0c2fbfd18401714587e326b97a02..50b0ea2596ec84b17bbe186637197f4608549144 100644
--- a/ppapi/cpp/video_decoder.h
+++ b/ppapi/cpp/video_decoder.h
@@ -65,6 +65,12 @@ class VideoDecoder : public Resource {
/// codec profile.
/// @param[in] acceleration A <code>PP_HardwareAcceleration</code> specifying
/// whether to use a hardware accelerated or a software implementation.
+ /// @param[in] min_picture_count A count of pictures the plugin would like to
+ /// have in flight. This is effectively the number of times the plugin can
+ /// call GetPicture() and get a decoded frame without calling
+ /// RecyclePicture(). The decoder has its own internal minimum count, and will
+ /// take the larger of its internal and this value. A client that doesn't care
+ /// can therefore just pass in zero for this argument.
/// @param[in] callback A <code>PP_CompletionCallback</code> to be called upon
/// completion.
///
@@ -75,6 +81,7 @@ class VideoDecoder : public Resource {
int32_t Initialize(const Graphics3D& graphics3d_context,
PP_VideoProfile profile,
PP_HardwareAcceleration acceleration,
+ uint32_t min_picture_count,
const CompletionCallback& callback);
/// Decodes a bitstream buffer. Copies |size| bytes of data from the plugin's
« no previous file with comments | « ppapi/c/ppb_video_decoder.h ('k') | ppapi/cpp/video_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698