summaryrefslogtreecommitdiffstats
path: root/content/common/gpu/media/vt_video_decode_accelerator.cc
diff options
context:
space:
mode:
Diffstat (limited to 'content/common/gpu/media/vt_video_decode_accelerator.cc')
-rw-r--r--content/common/gpu/media/vt_video_decode_accelerator.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/content/common/gpu/media/vt_video_decode_accelerator.cc b/content/common/gpu/media/vt_video_decode_accelerator.cc
index 2e0ace5..c98853d 100644
--- a/content/common/gpu/media/vt_video_decode_accelerator.cc
+++ b/content/common/gpu/media/vt_video_decode_accelerator.cc
@@ -1041,10 +1041,9 @@ bool VTVideoDecodeAccelerator::SendFrame(const Frame& frame) {
}
bool allow_overlay = false;
- 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)) {
+ 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)) {
allow_overlay = true;
} else {
gl_image = nullptr;