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

Unified Diff: content/renderer/pepper/pepper_video_decoder_host.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
Index: content/renderer/pepper/pepper_video_decoder_host.h
diff --git a/content/renderer/pepper/pepper_video_decoder_host.h b/content/renderer/pepper/pepper_video_decoder_host.h
index 0a92aebbb9dc986614500d598441172c33ebd015..7a200838f3dcdd824389c1f53ef37f1717fda5a3 100644
--- a/content/renderer/pepper/pepper_video_decoder_host.h
+++ b/content/renderer/pepper/pepper_video_decoder_host.h
@@ -70,7 +70,8 @@ class CONTENT_EXPORT PepperVideoDecoderHost
int32_t OnHostMsgInitialize(ppapi::host::HostMessageContext* context,
const ppapi::HostResource& graphics_context,
PP_VideoProfile profile,
- PP_HardwareAcceleration acceleration);
+ PP_HardwareAcceleration acceleration,
+ uint32_t min_picture_count);
int32_t OnHostMsgGetShm(ppapi::host::HostMessageContext* context,
uint32_t shm_id,
uint32_t shm_size);
@@ -109,6 +110,7 @@ class CONTENT_EXPORT PepperVideoDecoderHost
// This is parallel to |shm_buffers_|.
std::vector<uint8_t> shm_buffer_busy_;
+ uint32_t min_picture_count_;
typedef std::set<uint32_t> TextureSet;
TextureSet pictures_in_use_;
TextureSet dismissed_pictures_in_use_;
« no previous file with comments | « content/common/gpu/media/video_decode_accelerator_unittest.cc ('k') | content/renderer/pepper/pepper_video_decoder_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698