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

Unified Diff: ppapi/proxy/video_decoder_resource.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, 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
Index: ppapi/proxy/video_decoder_resource.h
diff --git a/ppapi/proxy/video_decoder_resource.h b/ppapi/proxy/video_decoder_resource.h
index aaa1b9571d4fae0d89609b193ad52e858bf912c2..a0ede60ffe3b4eaecd53a98ed7be8528091e7f4f 100644
--- a/ppapi/proxy/video_decoder_resource.h
+++ b/ppapi/proxy/video_decoder_resource.h
@@ -48,9 +48,15 @@ class PPAPI_PROXY_EXPORT VideoDecoderResource
PP_VideoProfile profile,
PP_Bool allow_software_fallback,
scoped_refptr<TrackedCallback> callback) override;
+ int32_t Initialize0_2(
+ PP_Resource graphics_context,
+ PP_VideoProfile profile,
+ PP_HardwareAcceleration acceleration,
+ scoped_refptr<TrackedCallback> callback) override;
int32_t Initialize(PP_Resource graphics_context,
PP_VideoProfile profile,
PP_HardwareAcceleration acceleration,
+ uint32_t min_picture_count,
scoped_refptr<TrackedCallback> callback) override;
int32_t Decode(uint32_t decode_id,
uint32_t size,
@@ -168,6 +174,11 @@ class PPAPI_PROXY_EXPORT VideoDecoderResource
static const int kMaximumPictureDelay = 128;
uint32_t decode_ids_[kMaximumPictureDelay];
+ // The maximum number of pictures that the client can pass in for
+ // min_picture_count, just as a sanity check on the argument.
+ static const uint32_t kMaximumPictureCount = 100;
bbudge 2015/08/12 17:47:09 the constant can be defined in an anonymous namesp
lpique 2015/08/12 22:48:54 Done.
+ uint32_t min_picture_count_;
+
// State for pending get_picture_callback_.
PP_VideoPicture* get_picture_;
PP_VideoPicture_0_1* get_picture_0_1_;

Powered by Google App Engine
This is Rietveld 408576698