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

Unified Diff: cc/resources/video_resource_updater.cc

Issue 2006893002: Video Gmb Pool: Plumb GpuMemoryBufferId through to compositor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add gmb ID support to unittests Created 4 years, 7 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 | « no previous file | media/base/video_frame.h » ('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 f0fe524df2bb2f8a3a2b73c3e040fbdba42dd96b..568c6f2b8bc6f320a95ec1e533cd30d7d1e44cd6 100644
--- a/cc/resources/video_resource_updater.cc
+++ b/cc/resources/video_resource_updater.cc
@@ -698,13 +698,13 @@ VideoFrameExternalResources VideoResourceUpdater::CreateForHardwarePlanes(
media::VideoFrameMetadata::COPY_REQUIRED)) {
CopyPlaneTexture(video_frame.get(), mailbox_holder, &external_resources);
} else {
- external_resources.mailboxes.push_back(
- TextureMailbox(mailbox_holder.mailbox, mailbox_holder.sync_token,
- mailbox_holder.texture_target,
- video_frame->coded_size(), gfx::GpuMemoryBufferId(),
- video_frame->metadata()->IsTrue(
- media::VideoFrameMetadata::ALLOW_OVERLAY),
- false));
+ external_resources.mailboxes.push_back(TextureMailbox(
+ mailbox_holder.mailbox, mailbox_holder.sync_token,
+ mailbox_holder.texture_target, video_frame->coded_size(),
+ video_frame->texture_gpu_memory_buffer_id(i),
+ video_frame->metadata()->IsTrue(
+ media::VideoFrameMetadata::ALLOW_OVERLAY),
+ false));
external_resources.release_callbacks.push_back(
base::Bind(&ReturnTexture, AsWeakPtr(), video_frame));
« no previous file with comments | « no previous file | media/base/video_frame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698