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

Unified Diff: media/gpu/ipc/client/gpu_video_decode_accelerator_host.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, 8 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/gpu/ipc/client/gpu_video_decode_accelerator_host.h
diff --git a/media/gpu/ipc/client/gpu_video_decode_accelerator_host.h b/media/gpu/ipc/client/gpu_video_decode_accelerator_host.h
index c60d2b5ab4a7d2001ec0778de06cec421980a751..d89df5f5b02ce66cc0f97d61a6a93ce3e12ad9e3 100644
--- a/media/gpu/ipc/client/gpu_video_decode_accelerator_host.h
+++ b/media/gpu/ipc/client/gpu_video_decode_accelerator_host.h
@@ -49,6 +49,7 @@ class GpuVideoDecodeAcceleratorHost
void Flush() override;
void Reset() override;
void Destroy() override;
+ VideoPixelFormat GetOutputFormat() const override;
// gpu::CommandBufferProxyImpl::DeletionObserver implemetnation.
void OnWillDeleteImpl() override;
@@ -66,7 +67,8 @@ class GpuVideoDecodeAcceleratorHost
// process. Should not be called directly.
void OnInitializationComplete(bool success);
void OnBitstreamBufferProcessed(int32_t bitstream_buffer_id);
- void OnProvidePictureBuffer(uint32_t num_requested_buffers,
+ void OnProvidePictureBuffer(VideoPixelFormat format,
+ uint32_t num_requested_buffers,
uint32_t textures_per_buffer,
const gfx::Size& dimensions,
uint32_t texture_target);
@@ -99,6 +101,8 @@ class GpuVideoDecodeAcceleratorHost
// Requested dimensions of the buffer, from ProvidePictureBuffers().
gfx::Size picture_buffer_dimensions_;
+ VideoPixelFormat picture_buffer_format_;
+
// WeakPtr factory for posting tasks back to itself.
base::WeakPtrFactory<GpuVideoDecodeAcceleratorHost> weak_this_factory_;

Powered by Google App Engine
This is Rietveld 408576698