Changeset 139033 in webkit


Ignore:
Timestamp:
Jan 7, 2013 10:53:30 PM (11 years ago)
Author:
commit-queue@webkit.org
Message:

[EFL][WK2][WebGL] The top left side of the screen is shown inside the canvas element
https://bugs.webkit.org/show_bug.cgi?id=105136

Patch by Viatcheslav Ostapenko <sl.ostapenko@samsung.com> on 2013-01-07
Reviewed by Noam Rosenthal.

Use glXSwapBuffers to force resize of GL surface after X window resize.

Fixes fast/canvas/webgl/webgl-composite-modes.html pixel test on EFL platform.

  • platform/graphics/surfaces/glx/X11WindowResources.cpp:

(WebCore::X11OffScreenWindow::reSizeWindow):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r139032 r139033  
     12013-01-07  Viatcheslav Ostapenko  <sl.ostapenko@samsung.com>
     2
     3        [EFL][WK2][WebGL] The top left side of the screen is shown inside the canvas element
     4        https://bugs.webkit.org/show_bug.cgi?id=105136
     5
     6        Reviewed by Noam Rosenthal.
     7
     8        Use glXSwapBuffers to force resize of GL surface after X window resize.
     9
     10        Fixes fast/canvas/webgl/webgl-composite-modes.html pixel test on EFL platform.
     11
     12        * platform/graphics/surfaces/glx/X11WindowResources.cpp:
     13        (WebCore::X11OffScreenWindow::reSizeWindow):
     14
    1152013-01-07  Steve Block  <steveblock@chromium.org>
    216
  • trunk/Source/WebCore/platform/graphics/surfaces/glx/X11WindowResources.cpp

    r138567 r139033  
    5151{
    5252    XResizeWindow(m_sharedResources->x11Display(), windowId, newRect.width(), newRect.height());
     53
     54    // Force resize of GL sureface after window resize.
     55    glXSwapBuffers(m_sharedResources->x11Display(), windowId);
    5356}
    5457
Note: See TracChangeset for help on using the changeset viewer.