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

Unified Diff: content/common/gpu/media/dxva_video_decode_accelerator.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, 6 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/common/gpu/media/dxva_video_decode_accelerator.h
diff --git a/content/common/gpu/media/dxva_video_decode_accelerator.h b/content/common/gpu/media/dxva_video_decode_accelerator.h
index 918531dc988f1b687c172d75611bc2053a476c80..25103fcafc5c617bc42126da955620d5b1c22575 100644
--- a/content/common/gpu/media/dxva_video_decode_accelerator.h
+++ b/content/common/gpu/media/dxva_video_decode_accelerator.h
@@ -64,6 +64,7 @@ class CONTENT_EXPORT DXVAVideoDecodeAccelerator
// media::VideoDecodeAccelerator implementation.
bool Initialize(media::VideoCodecProfile profile,
+ uint32 min_picture_count,
Client* client) override;
void Decode(const media::BitstreamBuffer& bitstream_buffer) override;
void AssignPictureBuffers(
@@ -308,6 +309,9 @@ class CONTENT_EXPORT DXVAVideoDecodeAccelerator
// become available.
OutputBuffers stale_output_picture_buffers_;
+ // The number of picture buffers to allocate
+ uint32 num_picture_buffers_;
+
// Set to true if we requested picture slots from the client.
bool pictures_requested_;

Powered by Google App Engine
This is Rietveld 408576698