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

Unified Diff: media/gpu/dxva_picture_buffer_win.cc

Issue 2503063002: media: Inform VideoBlit/MFTransform of video color information (Closed)
Patch Set: merged Created 4 years, 1 month 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/dxva_picture_buffer_win.cc
diff --git a/media/gpu/dxva_picture_buffer_win.cc b/media/gpu/dxva_picture_buffer_win.cc
index df29c8ae2b3b3b40d3ac9b694fb1153a1e3bb5a0..390a72e1a5955217b95865d095b3f30950dc10ab 100644
--- a/media/gpu/dxva_picture_buffer_win.cc
+++ b/media/gpu/dxva_picture_buffer_win.cc
@@ -293,7 +293,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;
@@ -329,7 +329,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;
}
@@ -611,7 +612,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_++;

Powered by Google App Engine
This is Rietveld 408576698