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

Unified Diff: content/common/gpu/media/vaapi_picture.cc

Issue 858653002: vaapi plumbing to allow hardware video overlays (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: make buildable before cc plumbing is in Created 5 years, 11 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: content/common/gpu/media/vaapi_picture.cc
diff --git a/content/common/gpu/media/vaapi_picture.cc b/content/common/gpu/media/vaapi_picture.cc
index 782971c61f2113a9854b1676800c942d26e4fd48..8255edcf4764982df66f95a7cb0d03c3287b3258 100644
--- a/content/common/gpu/media/vaapi_picture.cc
+++ b/content/common/gpu/media/vaapi_picture.cc
@@ -18,6 +18,8 @@ namespace content {
// static
linked_ptr<VaapiPicture> VaapiPicture::CreatePicture(
VaapiWrapper* vaapi_wrapper,
+ gpu::gles2::TextureManager* texture_manager,
+ gpu::gles2::TextureRef* texture_ref,
const base::Callback<bool(void)> make_context_current,
int32 picture_buffer_id,
uint32 texture_id,
@@ -31,7 +33,7 @@ linked_ptr<VaapiPicture> VaapiPicture::CreatePicture(
picture_buffer_id, texture_id, size));
#endif // USE_X11
- if (picture.get() && !picture->Initialize())
+ if (picture.get() && !picture->Initialize(texture_manager, texture_ref))
picture.reset();
return picture;

Powered by Google App Engine
This is Rietveld 408576698