Index: media/gpu/dxva_video_decode_accelerator_win.cc |
diff --git a/media/gpu/dxva_video_decode_accelerator_win.cc b/media/gpu/dxva_video_decode_accelerator_win.cc |
index 68618c069496ed1fa91d6dd5ec87f5b32d1a954f..3b5abf5b24099ebfed71fafc7501aa9d7b092e09 100644 |
--- a/media/gpu/dxva_video_decode_accelerator_win.cc |
+++ b/media/gpu/dxva_video_decode_accelerator_win.cc |
@@ -2089,14 +2089,15 @@ void DXVAVideoDecodeAccelerator::RequestPictureBuffers(int width, int height) { |
void DXVAVideoDecodeAccelerator::NotifyPictureReady( |
int picture_buffer_id, |
int input_buffer_id, |
- const gfx::ColorSpace& color_space) { |
+ const gfx::ColorSpace& color_space, |
+ bool allow_overlay) { |
DCHECK(main_thread_task_runner_->BelongsToCurrentThread()); |
// This task could execute after the decoder has been torn down. |
if (GetState() != kUninitialized && client_) { |
// TODO(henryhsu): Use correct visible size instead of (0, 0). We can't use |
// coded size here so use (0, 0) intentionally to have the client choose. |
Picture picture(picture_buffer_id, input_buffer_id, gfx::Rect(0, 0), |
- color_space, false); |
+ color_space, allow_overlay); |
client_->PictureReady(picture); |
} |
} |
@@ -2507,7 +2508,8 @@ void DXVAVideoDecodeAccelerator::CopySurfaceComplete( |
PLATFORM_FAILURE, ); |
NotifyPictureReady(picture_buffer->id(), input_buffer_id, |
- picture_buffer->color_space()); |
+ picture_buffer->color_space(), |
+ picture_buffer->AllowOverlay()); |
{ |
base::AutoLock lock(decoder_lock_); |
@@ -2560,7 +2562,8 @@ void DXVAVideoDecodeAccelerator::BindPictureBufferToSample( |
PLATFORM_FAILURE, ); |
NotifyPictureReady(picture_buffer->id(), input_buffer_id, |
- picture_buffer->color_space()); |
+ picture_buffer->color_space(), |
+ picture_buffer->AllowOverlay()); |
{ |
base::AutoLock lock(decoder_lock_); |