[Webkit-unassigned] [Bug 144685] [EGL] Move EGLDisplay handling to PlatformDisplay

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed May 6 08:25:28 PDT 2015


https://bugs.webkit.org/show_bug.cgi?id=144685

--- Comment #4 from Carlos Garcia Campos <cgarcia at igalia.com> ---
(In reply to comment #3)
> Comment on attachment 252470 [details]
> Try to fix EFL build
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=252470&action=review
> 
> > Source/WebCore/platform/graphics/PlatformDisplay.cpp:139
> > +#if USE(OPENGL_ES_2)
> > +    static const EGLenum eglAPIVersion = EGL_OPENGL_ES_API;
> > +#else
> > +    static const EGLenum eglAPIVersion = EGL_OPENGL_API;
> > +#endif
> > +    if (eglBindAPI(eglAPIVersion) == EGL_FALSE) {
> > +        LOG_ERROR("Failed to set EGL API(%d).", eglGetError());
> > +        terminateEGLDisplay();
> > +        return;
> > +    }
> 
> This needs to be called once per program, not once per display. Perhaps you
> could surround this with std::once.

Display is already a single instance, so this will be called only once per display, per process.

> > Source/WebCore/platform/graphics/surfaces/glx/GLXSurface.cpp:153
> > -    m_glxPixmap = glXCreateGLXPixmap(m_sharedDisplay, visualInfo.get(), m_pixmap);
> > +    m_glxPixmap = glXCreateGLXPixmap(X11Helper::nativeDisplay(), visualInfo.get(), m_pixmap);
> 
> This is GLX-related, so perhaps you could update the bug title and ChangeLog
> slightly?

But nothing has actually changed here, I can add and remove PlatformDisplay from GLDefs.h

-- 
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/20150506/9fb0fdcc/attachment.html>


More information about the webkit-unassigned mailing list