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

Unified Diff: cc/resources/video_resource_updater.cc

Issue 2683763003: cc: make resource keep video buffer format for hardware overlay.
Patch Set: plumbing video format to ozone Created 3 years, 10 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
Index: cc/resources/video_resource_updater.cc
diff --git a/cc/resources/video_resource_updater.cc b/cc/resources/video_resource_updater.cc
index cb6b6c189dcf60d0bfa976d679dc34969b551f18..6c08a31b9c4fa584c3cea2533a038a0f3d5eaec3 100644
--- a/cc/resources/video_resource_updater.cc
+++ b/cc/resources/video_resource_updater.cc
@@ -159,6 +159,7 @@ void VideoResourceUpdater::PlaneResource::SetUniqueId(int unique_frame_id,
VideoFrameExternalResources::VideoFrameExternalResources()
: type(NONE),
+ pixel_format(media::PIXEL_FORMAT_UNKNOWN),
read_lock_fences_enabled(false),
offset(0.0f),
multiplier(1.0f),
@@ -501,6 +502,7 @@ VideoFrameExternalResources VideoResourceUpdater::CreateForSoftwarePlanes(
VideoFrameExternalResources external_resources;
+ external_resources.pixel_format = video_frame->format();
external_resources.bits_per_channel = bits_per_channel;
if (software_compositor || texture_needs_rgb_conversion) {
@@ -741,6 +743,7 @@ VideoFrameExternalResources VideoResourceUpdater::CreateForHardwarePlanes(
return VideoFrameExternalResources();
VideoFrameExternalResources external_resources;
+ external_resources.pixel_format = video_frame->format();
if (video_frame->metadata()->IsTrue(
media::VideoFrameMetadata::READ_LOCK_FENCES_ENABLED)) {
external_resources.read_lock_fences_enabled = true;

Powered by Google App Engine
This is Rietveld 408576698