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

Unified Diff: chromecast/media/cma/filters/hole_frame_factory.cc

Issue 1223793009: Fixes to Cast use of overlays for video frames (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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: chromecast/media/cma/filters/hole_frame_factory.cc
diff --git a/chromecast/media/cma/filters/hole_frame_factory.cc b/chromecast/media/cma/filters/hole_frame_factory.cc
index dfb9a33b0f208e1177e88675aacdfd5c5e2caca2..d5e2c07c1666aa0af2d9b04a1167f7638e7f4985 100644
--- a/chromecast/media/cma/filters/hole_frame_factory.cc
+++ b/chromecast/media/cma/filters/hole_frame_factory.cc
@@ -36,6 +36,8 @@ HoleFrameFactory::HoleFrameFactory(
gl->GenMailboxCHROMIUM(mailbox_.name);
gl->ProduceTextureDirectCHROMIUM(texture_, GL_TEXTURE_2D, mailbox_.name);
+
+ sync_point_ = gl->InsertSyncPointCHROMIUM();
}
}
@@ -61,7 +63,7 @@ scoped_refptr<::media::VideoFrame> HoleFrameFactory::CreateHoleFrame(
scoped_refptr<::media::VideoFrame> frame =
::media::VideoFrame::WrapNativeTexture(
::media::VideoFrame::XRGB,
- gpu::MailboxHolder(mailbox_, GL_TEXTURE_2D, 0),
+ gpu::MailboxHolder(mailbox_, GL_TEXTURE_2D, sync_point_),
::media::VideoFrame::ReleaseMailboxCB(),
size, // coded_size
gfx::Rect(size), // visible rect

Powered by Google App Engine
This is Rietveld 408576698