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

Unified Diff: media/gpu/ipc/client/gpu_video_decode_accelerator_host.cc

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.cc
diff --git a/media/gpu/ipc/client/gpu_video_decode_accelerator_host.cc b/media/gpu/ipc/client/gpu_video_decode_accelerator_host.cc
index 0d3d0683d88f4d34ff27335d9f1502d1f82059f8..c78c6450bb213bb7fa4d1e9d0353f394865c4d64 100644
--- a/media/gpu/ipc/client/gpu_video_decode_accelerator_host.cc
+++ b/media/gpu/ipc/client/gpu_video_decode_accelerator_host.cc
@@ -180,6 +180,10 @@ void GpuVideoDecodeAcceleratorHost::Destroy() {
delete this;
}
+VideoPixelFormat GpuVideoDecodeAcceleratorHost::GetOutputFormat() const {
+ return picture_buffer_format_;
+}
+
void GpuVideoDecodeAcceleratorHost::OnWillDeleteImpl() {
DCHECK(CalledOnValidThread());
impl_ = NULL;
@@ -219,12 +223,14 @@ void GpuVideoDecodeAcceleratorHost::OnBitstreamBufferProcessed(
}
void GpuVideoDecodeAcceleratorHost::OnProvidePictureBuffer(
+ VideoPixelFormat format,
uint32_t num_requested_buffers,
uint32_t textures_per_buffer,
const gfx::Size& dimensions,
uint32_t texture_target) {
DCHECK(CalledOnValidThread());
picture_buffer_dimensions_ = dimensions;
+ picture_buffer_format_ = format;
const int kMaxVideoPlanes = 4;
if (textures_per_buffer > kMaxVideoPlanes) {

Powered by Google App Engine
This is Rietveld 408576698