Title: [138346] trunk/Source/WebCore
- Revision
- 138346
- Author
- [email protected]
- Date
- 2012-12-20 21:08:51 -0800 (Thu, 20 Dec 2012)
Log Message
[WebGL][EFL][Qt][GTK] Jelly fishes leave trails on webgl canvas.
https://bugs.webkit.org/show_bug.cgi?id=105326
Patch by Huang Dongsung <[email protected]> on 2012-12-20
Reviewed by Noam Rosenthal.
Clear a drawing buffer after compositing if preserveDrawingBuffer is
false.
http://www.khronos.org/registry/webgl/specs/latest/#2.2
No new tests. Covered by existing webgl-preserve-drawing-buffer-repaint test.
* platform/graphics/cairo/GraphicsContext3DPrivate.cpp:
(WebCore::GraphicsContext3DPrivate::paintToTextureMapper):
* platform/graphics/efl/GraphicsContext3DPrivate.cpp:
(GraphicsContext3DPrivate::copyToGraphicsSurface):
* platform/graphics/qt/GraphicsContext3DQt.cpp:
(WebCore::GraphicsContext3DPrivate::paintToTextureMapper):
(WebCore::GraphicsContext3DPrivate::copyToGraphicsSurface):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (138345 => 138346)
--- trunk/Source/WebCore/ChangeLog 2012-12-21 04:32:52 UTC (rev 138345)
+++ trunk/Source/WebCore/ChangeLog 2012-12-21 05:08:51 UTC (rev 138346)
@@ -1,3 +1,24 @@
+2012-12-20 Huang Dongsung <[email protected]>
+
+ [WebGL][EFL][Qt][GTK] Jelly fishes leave trails on webgl canvas.
+ https://bugs.webkit.org/show_bug.cgi?id=105326
+
+ Reviewed by Noam Rosenthal.
+
+ Clear a drawing buffer after compositing if preserveDrawingBuffer is
+ false.
+ http://www.khronos.org/registry/webgl/specs/latest/#2.2
+
+ No new tests. Covered by existing webgl-preserve-drawing-buffer-repaint test.
+
+ * platform/graphics/cairo/GraphicsContext3DPrivate.cpp:
+ (WebCore::GraphicsContext3DPrivate::paintToTextureMapper):
+ * platform/graphics/efl/GraphicsContext3DPrivate.cpp:
+ (GraphicsContext3DPrivate::copyToGraphicsSurface):
+ * platform/graphics/qt/GraphicsContext3DQt.cpp:
+ (WebCore::GraphicsContext3DPrivate::paintToTextureMapper):
+ (WebCore::GraphicsContext3DPrivate::copyToGraphicsSurface):
+
2012-12-20 Filip Pizlo <[email protected]>
Create a variable name for a RAII scope so it doesn't die immediately.
Modified: trunk/Source/WebCore/platform/graphics/cairo/GraphicsContext3DPrivate.cpp (138345 => 138346)
--- trunk/Source/WebCore/platform/graphics/cairo/GraphicsContext3DPrivate.cpp 2012-12-21 04:32:52 UTC (rev 138345)
+++ trunk/Source/WebCore/platform/graphics/cairo/GraphicsContext3DPrivate.cpp 2012-12-21 05:08:51 UTC (rev 138346)
@@ -85,6 +85,8 @@
ASSERT(m_renderStyle == GraphicsContext3D::RenderOffscreen);
+ m_context->markLayerComposited();
+
// FIXME: We do not support mask for the moment with TextureMapperImageBuffer.
if (textureMapper->accelerationMode() != TextureMapper::OpenGLMode) {
GraphicsContext* context = textureMapper->graphicsContext();
Modified: trunk/Source/WebCore/platform/graphics/efl/GraphicsContext3DPrivate.cpp (138345 => 138346)
--- trunk/Source/WebCore/platform/graphics/efl/GraphicsContext3DPrivate.cpp 2012-12-21 04:32:52 UTC (rev 138345)
+++ trunk/Source/WebCore/platform/graphics/efl/GraphicsContext3DPrivate.cpp 2012-12-21 05:08:51 UTC (rev 138346)
@@ -134,6 +134,8 @@
if (!m_platformContext || !makeContextCurrent())
return 0;
+ m_context->markLayerComposited();
+
if (m_pendingSurfaceResize) {
m_pendingSurfaceResize = false;
m_platformSurface->setGeometry(IntRect(0, 0, m_context->m_currentWidth, m_context->m_currentHeight));
Modified: trunk/Source/WebCore/platform/graphics/qt/GraphicsContext3DQt.cpp (138345 => 138346)
--- trunk/Source/WebCore/platform/graphics/qt/GraphicsContext3DQt.cpp 2012-12-21 04:32:52 UTC (rev 138345)
+++ trunk/Source/WebCore/platform/graphics/qt/GraphicsContext3DQt.cpp 2012-12-21 05:08:51 UTC (rev 138346)
@@ -210,6 +210,7 @@
#if USE(ACCELERATED_COMPOSITING)
void GraphicsContext3DPrivate::paintToTextureMapper(TextureMapper* textureMapper, const FloatRect& targetRect, const TransformationMatrix& matrix, float opacity, BitmapTexture* mask)
{
+ m_context->markLayerComposited();
blitMultisampleFramebufferAndRestoreContext();
if (textureMapper->accelerationMode() == TextureMapper::OpenGLMode) {
@@ -290,6 +291,7 @@
if (!m_graphicsSurface)
return 0;
+ m_context->markLayerComposited();
blitMultisampleFramebufferAndRestoreContext();
m_graphicsSurface->copyFromTexture(m_context->m_texture, IntRect(0, 0, m_context->m_currentWidth, m_context->m_currentHeight));
return m_graphicsSurface->frontBuffer();
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes