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

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: Enable read lock fences for all the native planes. 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..e973a3d5240d057877100f4c7a0fb8e366e7b148 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() {}
@@ -373,6 +375,7 @@ VideoFrameExternalResources VideoResourceUpdater::CreateForHardwarePlanes(
const size_t textures = media::VideoFrame::NumPlanes(video_frame->format());
DCHECK_GE(textures, 1u);
VideoFrameExternalResources external_resources;
+ external_resources.read_lock_fences_enabled = true;
switch (video_frame->format()) {
case media::VideoFrame::ARGB:
case media::VideoFrame::XRGB:
« 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