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

Unified Diff: media/filters/gpu_video_decoder.h

Issue 1751323002: Allow multiple texture ids per picture buffer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 | « content/renderer/pepper/video_decoder_shim.cc ('k') | media/filters/gpu_video_decoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/gpu_video_decoder.h
diff --git a/media/filters/gpu_video_decoder.h b/media/filters/gpu_video_decoder.h
index 3e6c0cac4a64c621fea28cc2e23ad523cbdecc15..de63e653832f7381f545aec7375e8fe20a577c43 100644
--- a/media/filters/gpu_video_decoder.h
+++ b/media/filters/gpu_video_decoder.h
@@ -67,6 +67,7 @@ class MEDIA_EXPORT GpuVideoDecoder
// VideoDecodeAccelerator::Client implementation.
void NotifyCdmAttached(bool success) override;
void ProvidePictureBuffers(uint32_t count,
+ uint32_t textures_per_buffer,
const gfx::Size& size,
uint32_t texture_target) override;
void DismissPictureBuffer(int32_t id) override;
@@ -117,7 +118,7 @@ class MEDIA_EXPORT GpuVideoDecoder
static void ReleaseMailbox(base::WeakPtr<GpuVideoDecoder> decoder,
media::GpuVideoAcceleratorFactories* factories,
int64_t picture_buffer_id,
- uint32_t texture_id,
+ PictureBuffer::TextureIds ids,
const gpu::SyncToken& release_sync_token);
// Indicate the picture buffer can be reused by the decoder.
void ReusePictureBuffer(int64_t picture_buffer_id);
@@ -186,7 +187,8 @@ class MEDIA_EXPORT GpuVideoDecoder
// PictureBuffers given to us by VDA via PictureReady, which we sent forward
// as VideoFrames to be rendered via decode_cb_, and which will be returned
// to us via ReusePictureBuffer.
- typedef std::map<int32_t /* picture_buffer_id */, uint32_t /* texture_id */>
+ typedef std::map<int32_t /* picture_buffer_id */,
+ PictureBuffer::TextureIds /* texture_id */>
PictureBufferTextureMap;
PictureBufferTextureMap picture_buffers_at_display_;
« no previous file with comments | « content/renderer/pepper/video_decoder_shim.cc ('k') | media/filters/gpu_video_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698