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

Unified Diff: content/renderer/media/rtc_video_decoder.h

Issue 1942123002: Plumb decoded video pixel format from GPU process to renderer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/media/rtc_video_decoder.h
diff --git a/content/renderer/media/rtc_video_decoder.h b/content/renderer/media/rtc_video_decoder.h
index 68d1c4baa760a3b4280a0d833fb1dc12c7e87c19..a9f8872925197332132b204a9cbf3efc70121f1e 100644
--- a/content/renderer/media/rtc_video_decoder.h
+++ b/content/renderer/media/rtc_video_decoder.h
@@ -82,6 +82,7 @@ class CONTENT_EXPORT RTCVideoDecoder
// VideoDecodeAccelerator::Client implementation.
void ProvidePictureBuffers(uint32_t count,
+ media::VideoPixelFormat format,
uint32_t textures_per_buffer,
const gfx::Size& size,
uint32_t texture_target) override;
@@ -233,6 +234,9 @@ class CONTENT_EXPORT RTCVideoDecoder
// The texture target used for decoded pictures.
uint32_t decoder_texture_target_;
+ // The format of the decoded pictures.
+ media::VideoPixelFormat pixel_format_;
+
// Metadata of the buffers that have been sent for decode.
std::list<BufferData> input_buffer_data_;

Powered by Google App Engine
This is Rietveld 408576698