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

Unified Diff: media/filters/gpu_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: media/filters/gpu_video_decoder.h
diff --git a/media/filters/gpu_video_decoder.h b/media/filters/gpu_video_decoder.h
index d5488406363b487fae909dd92bdf974928f685ef..159381bfab3a3d70001b319f3b8c1970ab462527 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 NotifyInitializationComplete(bool success) override;
void ProvidePictureBuffers(uint32_t count,
+ VideoPixelFormat format,
uint32_t textures_per_buffer,
const gfx::Size& size,
uint32_t texture_target) override;
@@ -195,6 +196,9 @@ class MEDIA_EXPORT GpuVideoDecoder
// The texture target used for decoded pictures.
uint32_t decoder_texture_target_;
+ // The pixel format used for decoded pictures.
+ VideoPixelFormat pixel_format_;
+
struct BufferData {
BufferData(int32_t bbid,
base::TimeDelta ts,

Powered by Google App Engine
This is Rietveld 408576698