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

Unified Diff: media/video/gpu_memory_buffer_video_frame_pool.cc

Issue 2169913003: Video: Plumb media::VideoFrame color space to cc and GpuMemoryBuffer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 5 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
« no previous file with comments | « media/base/video_frame.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/video/gpu_memory_buffer_video_frame_pool.cc
diff --git a/media/video/gpu_memory_buffer_video_frame_pool.cc b/media/video/gpu_memory_buffer_video_frame_pool.cc
index 02eba8ed28dca2d9df4de59719675913328cc7fc..6c0e549d00888402d397a2d6a510ce00976f34bd 100644
--- a/media/video/gpu_memory_buffer_video_frame_pool.cc
+++ b/media/video/gpu_memory_buffer_video_frame_pool.cc
@@ -438,8 +438,11 @@ void GpuMemoryBufferVideoFramePool::PoolImpl::OnCopiesDone(
FrameResources* frame_resources,
const FrameReadyCB& frame_ready_cb) {
for (const auto& plane_resource : frame_resources->plane_resources) {
- if (plane_resource.gpu_memory_buffer)
+ if (plane_resource.gpu_memory_buffer) {
plane_resource.gpu_memory_buffer->Unmap();
+ plane_resource.gpu_memory_buffer->SetColorSpaceForScanout(
+ video_frame->ColorSpace());
+ }
}
media_task_runner_->PostTask(
« no previous file with comments | « media/base/video_frame.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698