Index: content/common/gpu/media/vt_video_decode_accelerator.cc |
diff --git a/content/common/gpu/media/vt_video_decode_accelerator.cc b/content/common/gpu/media/vt_video_decode_accelerator.cc |
index c98853dd6b863ebbba3e390dc731f814dad927a6..2e0ace50c1657edcdfc84dc888a26a5494071ab4 100644 |
--- a/content/common/gpu/media/vt_video_decode_accelerator.cc |
+++ b/content/common/gpu/media/vt_video_decode_accelerator.cc |
@@ -1041,9 +1041,10 @@ bool VTVideoDecodeAccelerator::SendFrame(const Frame& frame) { |
} |
bool allow_overlay = false; |
- scoped_refptr<gfx::GLImageIOSurface> gl_image(new gfx::GLImageIOSurface( |
- gfx::GenericSharedMemoryId(), frame.coded_size, GL_BGRA_EXT)); |
- if (gl_image->Initialize(surface, gfx::BufferFormat::BGRA_8888)) { |
+ scoped_refptr<gfx::GLImageIOSurface> gl_image( |
+ new gfx::GLImageIOSurface(frame.coded_size, GL_BGRA_EXT)); |
+ if (gl_image->Initialize(surface, gfx::GenericSharedMemoryId(), |
+ gfx::BufferFormat::BGRA_8888)) { |
allow_overlay = true; |
} else { |
gl_image = nullptr; |