Changeset 116585 in webkit


Ignore:
Timestamp:
May 9, 2012 5:34:48 PM (12 years ago)
Author:
commit-queue@webkit.org
Message:

[Cairo] GLContextGLX releases the context with an uninitialized display
https://bugs.webkit.org/show_bug.cgi?id=86039

Patch by Martin Robinson <mrobinson@igalia.com> on 2012-05-09
Reviewed by Philippe Normand.

No new tests. This does not change behavior on most machines, but has
the potential to prevent a pretty nasty crash on others.

Use the shared display to release GLX contexts instead of the uninitialized
m_display member.

  • platform/graphics/glx/GLContextGLX.cpp:

(WebCore::GLContextGLX::~GLContextGLX): Release the display with the shared
display.

  • platform/graphics/glx/GLContextGLX.h:

(GLContextGLX): Remove the m_display member.

Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r116584 r116585  
     12012-05-09  Martin Robinson  <mrobinson@igalia.com>
     2
     3        [Cairo] GLContextGLX releases the context with an uninitialized display
     4        https://bugs.webkit.org/show_bug.cgi?id=86039
     5
     6        Reviewed by Philippe Normand.
     7
     8        No new tests. This does not change behavior on most machines, but has
     9        the potential to prevent a pretty nasty crash on others.
     10
     11        Use the shared display to release GLX contexts instead of the uninitialized
     12        m_display member.
     13
     14        * platform/graphics/glx/GLContextGLX.cpp:
     15        (WebCore::GLContextGLX::~GLContextGLX): Release the display with the shared
     16        display.
     17        * platform/graphics/glx/GLContextGLX.h:
     18        (GLContextGLX): Remove the m_display member.
     19
    1202012-05-09  Tony Gentilcore  <tonyg@chromium.org>
    221
  • trunk/Source/WebCore/platform/graphics/glx/GLContextGLX.cpp

    r113909 r116585  
    241241        // from Mozilla's 3D canvas implementation at: http://bitbucket.org/ilmari/canvas3d/
    242242        glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, 0);
    243         glXMakeCurrent(m_display, None, None);
    244         glXDestroyContext(m_display, m_context);
     243        glXMakeCurrent(sharedDisplay(), None, None);
     244        glXDestroyContext(sharedDisplay(), m_context);
    245245    }
    246246
  • trunk/Source/WebCore/platform/graphics/glx/GLContextGLX.h

    r113909 r116585  
    6464
    6565    GLXContext m_context;
    66     Display* m_display;
    6766    XID m_window;
    6867    GLXPbuffer m_pbuffer;
Note: See TracChangeset for help on using the changeset viewer.