| Index: media/gpu/vt_video_decode_accelerator_mac.cc
|
| diff --git a/media/gpu/vt_video_decode_accelerator_mac.cc b/media/gpu/vt_video_decode_accelerator_mac.cc
|
| index 4b22b50eb5569d983c575912f8ef534e109a239c..1a6dfa75b9f6d9d3e3b7cb27e17cdfaceddececf 100644
|
| --- a/media/gpu/vt_video_decode_accelerator_mac.cc
|
| +++ b/media/gpu/vt_video_decode_accelerator_mac.cc
|
| @@ -1037,11 +1037,12 @@ 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->InitializeWithCVPixelBuffer(
|
| - frame.image.get(), gfx::GenericSharedMemoryId(),
|
| - gfx::BufferFormat::YUV_420_BIPLANAR)) {
|
| + if (!gl_image->Initialize(io_surface, gfx::GenericSharedMemoryId(),
|
| + gfx::BufferFormat::YUV_420_BIPLANAR)) {
|
| NOTIFY_STATUS("Failed to initialize GLImageIOSurface", PLATFORM_FAILURE,
|
| SFT_PLATFORM_ERROR);
|
| }
|
|
|