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

Unified Diff: ppapi/proxy/video_decoder_constants.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/proxy/ppapi_messages.h ('k') | ppapi/proxy/video_decoder_resource.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/video_decoder_constants.h
diff --git a/ppapi/proxy/video_decoder_constants.h b/ppapi/proxy/video_decoder_constants.h
index 666ad46044dd6970b36207b761016ec64085bbe5..08ea9c743b3955415efb4a3bb58aa265c4d2273d 100644
--- a/ppapi/proxy/video_decoder_constants.h
+++ b/ppapi/proxy/video_decoder_constants.h
@@ -19,7 +19,12 @@ enum {
// Maximum size of shared-memory buffers (4 MB). This should be enough even
// for 4K video at reasonable compression levels.
- kMaximumBitstreamBufferSize = 4 << 20
+ kMaximumBitstreamBufferSize = 4 << 20,
+
+ // The maximum number of pictures that the client can pass in for
+ // min_picture_count, just as a sanity check on the argument.
+ // This should match the constant of the same name in test_video_decoder.cc.
+ kMaximumPictureCount = 100
};
} // namespace proxy
« no previous file with comments | « ppapi/proxy/ppapi_messages.h ('k') | ppapi/proxy/video_decoder_resource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698