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

Unified Diff: cc/resources/video_resource_updater.cc

Issue 1930193002: cc: Add GpuMemoryBufferHandle to TextureMailbox (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix exo Created 4 years, 8 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 e77cd7505af1c58cecfbfe1f07bb0d32f9641a01..df9ea1ae5c4c9efbfb07ee926e0d1fc1e7d8a730 100644
--- a/cc/resources/video_resource_updater.cc
+++ b/cc/resources/video_resource_updater.cc
@@ -653,9 +653,9 @@ void VideoResourceUpdater::CopyPlaneTexture(
// Done with the source video frame texture at this point.
video_frame->UpdateReleaseSyncToken(&client);
- external_resources->mailboxes.push_back(
- TextureMailbox(resource->mailbox, sync_token, GL_TEXTURE_2D,
- video_frame->coded_size(), false, false));
+ external_resources->mailboxes.push_back(TextureMailbox(
+ resource->mailbox, sync_token, GL_TEXTURE_2D, video_frame->coded_size(),
+ gfx::GpuMemoryBufferHandle(), false, false));
external_resources->release_callbacks.push_back(
base::Bind(&RecycleResource, AsWeakPtr(), resource->resource_id));
@@ -694,6 +694,7 @@ VideoFrameExternalResources VideoResourceUpdater::CreateForHardwarePlanes(
external_resources.mailboxes.push_back(TextureMailbox(
mailbox_holder.mailbox, mailbox_holder.sync_token,
mailbox_holder.texture_target, video_frame->coded_size(),
+ gfx::GpuMemoryBufferHandle(),
video_frame->metadata()->IsTrue(
media::VideoFrameMetadata::ALLOW_OVERLAY),
false));

Powered by Google App Engine
This is Rietveld 408576698