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

Unified Diff: cc/resources/video_resource_updater.cc

Issue 1195473003: cc: Set read lock fences required for YUV native video frames. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove flag in FrameResource. Created 5 years, 6 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 | « cc/resources/video_resource_updater.h ('k') | cc/resources/video_resource_updater_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/video_resource_updater.cc
diff --git a/cc/resources/video_resource_updater.cc b/cc/resources/video_resource_updater.cc
index cd0789d4e0e1009f14a658d471cf78d0878e0fab..2cee5434f08e6d5fd5b1039b98c8f055ba28e04c 100644
--- a/cc/resources/video_resource_updater.cc
+++ b/cc/resources/video_resource_updater.cc
@@ -85,7 +85,9 @@ void VideoResourceUpdater::SetPlaneResourceUniqueId(
plane_resource->timestamp = video_frame->timestamp();
}
-VideoFrameExternalResources::VideoFrameExternalResources() : type(NONE) {}
+VideoFrameExternalResources::VideoFrameExternalResources()
+ : type(NONE), read_lock_fences_enabled(false) {
+}
VideoFrameExternalResources::~VideoFrameExternalResources() {}
@@ -398,6 +400,7 @@ VideoFrameExternalResources VideoResourceUpdater::CreateForHardwarePlanes(
break;
case media::VideoFrame::I420:
external_resources.type = VideoFrameExternalResources::YUV_RESOURCE;
+ external_resources.read_lock_fences_enabled = true;
reveman 2015/06/17 16:59:02 We'll need this for all formats. Maybe just set it
Daniele Castagna 2015/06/17 17:02:25 Done.
break;
#if defined(OS_MACOSX) || defined(OS_CHROMEOS)
case media::VideoFrame::NV12:
« no previous file with comments | « cc/resources/video_resource_updater.h ('k') | cc/resources/video_resource_updater_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698