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

Unified Diff: media/gpu/dxva_video_decode_accelerator_win.cc

Issue 2470363003: preserve color space when copy_nv12_textures_ is true (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 192591550518195664fd11fa687a510732cb7d22..4b7a32b0bfd3001735bfb3e869b765e50f80f444 100644
--- a/media/gpu/dxva_video_decode_accelerator_win.cc
+++ b/media/gpu/dxva_video_decode_accelerator_win.cc
@@ -1753,7 +1753,10 @@ void DXVAVideoDecodeAccelerator::ProcessPendingSamples() {
pending_sample->picture_buffer_id = index->second->id();
index->second->set_bound();
- index->second->set_color_space(pending_sample->color_space);
+ if (share_nv12_textures_ || copy_nv12_textures_) {
sandersd (OOO until July 31) 2016/11/03 23:31:58 Would it be possible to have the color conversion
hubbe 2016/11/04 03:49:31 Possible: Yes, Pretty: No The copy happens on ano
sandersd (OOO until July 31) 2016/11/04 17:51:34 This really needs a comment if it's not changing.
+ index->second->set_color_space(pending_sample->color_space);
+ }
+
if (share_nv12_textures_) {
main_thread_task_runner_->PostTask(
FROM_HERE,
@@ -2276,7 +2279,8 @@ void DXVAVideoDecodeAccelerator::CopySurfaceComplete(
RETURN_AND_NOTIFY_ON_FAILURE(result, "Failed to complete copying surface",
PLATFORM_FAILURE, );
- NotifyPictureReady(picture_buffer->id(), input_buffer_id, gfx::ColorSpace());
+ NotifyPictureReady(picture_buffer->id(), input_buffer_id,
+ picture_buffer->color_space());
{
base::AutoLock lock(decoder_lock_);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698