Title: [139033] trunk/Source/WebCore
- Revision
- 139033
- Author
- [email protected]
- Date
- 2013-01-07 22:53:30 -0800 (Mon, 07 Jan 2013)
Log 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 <[email protected]> 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):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (139032 => 139033)
--- trunk/Source/WebCore/ChangeLog 2013-01-08 06:07:55 UTC (rev 139032)
+++ trunk/Source/WebCore/ChangeLog 2013-01-08 06:53:30 UTC (rev 139033)
@@ -1,3 +1,17 @@
+2013-01-07 Viatcheslav Ostapenko <[email protected]>
+
+ [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
+
+ 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):
+
2013-01-07 Steve Block <[email protected]>
Use explicit constructor to convert from Int/FloatSize to Int/FloatPoint
Modified: trunk/Source/WebCore/platform/graphics/surfaces/glx/X11WindowResources.cpp (139032 => 139033)
--- trunk/Source/WebCore/platform/graphics/surfaces/glx/X11WindowResources.cpp 2013-01-08 06:07:55 UTC (rev 139032)
+++ trunk/Source/WebCore/platform/graphics/surfaces/glx/X11WindowResources.cpp 2013-01-08 06:53:30 UTC (rev 139033)
@@ -50,6 +50,9 @@
void X11OffScreenWindow::reSizeWindow(const IntRect& newRect, const uint32_t windowId)
{
XResizeWindow(m_sharedResources->x11Display(), windowId, newRect.width(), newRect.height());
+
+ // Force resize of GL sureface after window resize.
+ glXSwapBuffers(m_sharedResources->x11Display(), windowId);
}
void X11OffScreenWindow::createOffscreenWindow(uint32_t* handleId)
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes