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

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

Issue 1861923002: Mac h264: Retain CVPixelBuffer inside GLImageIOSurface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « no previous file | ui/gl/gl_image_io_surface.h » ('j') | ui/gl/gl_image_io_surface.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/media/vt_video_decode_accelerator_mac.cc
diff --git a/content/common/gpu/media/vt_video_decode_accelerator_mac.cc b/content/common/gpu/media/vt_video_decode_accelerator_mac.cc
index 4954c6d6758ea20ae04de8a005b24137f955d437..06ed46bb3a572bbddce36c3a75e489d0aa57930d 100644
--- a/content/common/gpu/media/vt_video_decode_accelerator_mac.cc
+++ b/content/common/gpu/media/vt_video_decode_accelerator_mac.cc
@@ -1033,12 +1033,11 @@ bool VTVideoDecodeAccelerator::SendFrame(const Frame& frame) {
return false;
}
- IOSurfaceRef io_surface = CVPixelBufferGetIOSurface(frame.image.get());
-
scoped_refptr<gl::GLImageIOSurface> gl_image(
new gl::GLImageIOSurface(frame.coded_size, GL_BGRA_EXT));
- if (!gl_image->Initialize(io_surface, gfx::GenericSharedMemoryId(),
- gfx::BufferFormat::YUV_420_BIPLANAR)) {
+ if (!gl_image->InitializeWithCVPixelBuffer(
+ frame.image.get(), gfx::GenericSharedMemoryId(),
+ gfx::BufferFormat::YUV_420_BIPLANAR)) {
NOTIFY_STATUS("Failed to initialize GLImageIOSurface", PLATFORM_FAILURE,
SFT_PLATFORM_ERROR);
}
« no previous file with comments | « no previous file | ui/gl/gl_image_io_surface.h » ('j') | ui/gl/gl_image_io_surface.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698