Chromium Code Reviews| 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_; |