[Webkit-unassigned] [Bug 159928] [GStreamer] Support a direct GPU-to-GPU copy of video textures to WebGL
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Sep 22 01:16:10 PDT 2016
https://bugs.webkit.org/show_bug.cgi?id=159928
--- Comment #16 from Miguel Gomez <magomez at igalia.com> ---
Awesome, I was just about to ping a reviewer to give it a look and you were faster Carlos.
Also a reply to one of your comments:
> > Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp:773
> > + GLContext* glContext = PlatformDisplay::sharedDisplayForCompositing().sharingGLContext();
> > + cairo_device_t* device = glContext->cairoDevice();
> > +
> > + // Thread-awareness is a huge performance hit on non-Intel drivers.
> > + cairo_gl_device_set_thread_aware(device, FALSE);
> > +
> > + IntSize size = IntSize(GST_VIDEO_INFO_WIDTH(&videoInfo), GST_VIDEO_INFO_HEIGHT(&videoInfo));
> > + IntSize rotatedSize = m_videoSourceOrientation.usesWidthAsHeight() ? size.transposedSize() : size;
> > +
>
> Don't you need to make the context current in this case?
>
Making the context current in that case is not needed. Setting thread awareness is just a flag, doesn't need the context to be current, and also the context->bindTexture() call three lines below will make current the weblg context again.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160922/03aabb7d/attachment.html>
More information about the webkit-unassigned
mailing list