Index: media/gpu/dxva_picture_buffer_win.cc |
diff --git a/media/gpu/dxva_picture_buffer_win.cc b/media/gpu/dxva_picture_buffer_win.cc |
index e0a37830907230183d5ee9a2de82ad200567ad33..964d63dbd6387c53d039fdccbc693472cf197cd0 100644 |
--- a/media/gpu/dxva_picture_buffer_win.cc |
+++ b/media/gpu/dxva_picture_buffer_win.cc |
@@ -224,7 +224,7 @@ bool PbufferPictureBuffer::CopyOutputSampleDataToPictureBuffer( |
decoder_dx11_texture_ = dx11_texture; |
decoder->CopyTexture(dx11_texture, dx11_decoding_texture_.get(), |
dx11_keyed_mutex_, keyed_mutex_value_, id(), |
- input_buffer_id); |
+ input_buffer_id, color_space_); |
return true; |
} |
D3DSURFACE_DESC surface_desc; |
@@ -260,7 +260,8 @@ bool PbufferPictureBuffer::CopyOutputSampleDataToPictureBuffer( |
decoder_surface_ = dest_surface; |
decoder->CopySurface(decoder_surface_.get(), target_surface_.get(), id(), |
- input_buffer_id); |
+ input_buffer_id, color_space_); |
+ color_space_ = gfx::ColorSpace(); |
return true; |
} |
@@ -555,7 +556,7 @@ bool EGLStreamCopyPictureBuffer::CopyOutputSampleDataToPictureBuffer( |
dx11_decoding_texture_ = dx11_texture; |
decoder->CopyTexture(dx11_texture, decoder_copy_texture_.get(), |
dx11_keyed_mutex_, keyed_mutex_value_, id(), |
- input_buffer_id); |
+ input_buffer_id, color_space_); |
// The texture copy will acquire the current keyed mutex value and release |
// with the value + 1. |
keyed_mutex_value_++; |