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

Unified Diff: cc/resources/video_resource_updater.cc

Issue 2683763003: cc: make resource keep video buffer format for hardware overlay.
Patch Set: make Resource keep video buffer format Created 3 years, 9 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
« cc/output/overlay_candidate.cc ('K') | « cc/resources/video_resource_updater.h ('k') | no next file » | 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 fa01b03ad49ad1accbbd3ab44f8d0f2e6ff266e3..9debe54fa4da1e1c7bcacc7381503bd0bbe2d682 100644
--- a/cc/resources/video_resource_updater.cc
+++ b/cc/resources/video_resource_updater.cc
@@ -161,6 +161,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),
@@ -378,6 +379,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) {
@@ -620,6 +622,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;
« cc/output/overlay_candidate.cc ('K') | « cc/resources/video_resource_updater.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698