Title: [137298] trunk/Source/WebCore
Revision
137298
Author
zeno.albis...@digia.com
Date
2012-12-11 05:37:34 -0800 (Tue, 11 Dec 2012)

Log Message

[Qt][Mac] Fix transparency for WebGL content.
https://bugs.webkit.org/show_bug.cgi?id=104659

When drawing a texture to the TextureMapper the flag SupportsBlending
must be passed in order to allow for transparent webgl content.
We are doing this for GLX already, but the flag was still missing
in GraphicsSurfaceMac.

Reviewed by Kenneth Rohde Christiansen.

* platform/graphics/surfaces/mac/GraphicsSurfaceMac.cpp:
(WebCore::GraphicsSurface::platformPaintToTextureMapper):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (137297 => 137298)


--- trunk/Source/WebCore/ChangeLog	2012-12-11 13:32:23 UTC (rev 137297)
+++ trunk/Source/WebCore/ChangeLog	2012-12-11 13:37:34 UTC (rev 137298)
@@ -1,3 +1,18 @@
+2012-12-11  Zeno Albisser  <z...@webkit.org>
+
+        [Qt][Mac] Fix transparency for WebGL content.
+        https://bugs.webkit.org/show_bug.cgi?id=104659
+
+        When drawing a texture to the TextureMapper the flag SupportsBlending
+        must be passed in order to allow for transparent webgl content.
+        We are doing this for GLX already, but the flag was still missing
+        in GraphicsSurfaceMac.
+
+        Reviewed by Kenneth Rohde Christiansen.
+
+        * platform/graphics/surfaces/mac/GraphicsSurfaceMac.cpp:
+        (WebCore::GraphicsSurface::platformPaintToTextureMapper):
+
 2012-12-11  Alexander Pavlov  <apav...@chromium.org>
 
         Web Inspector: Duplicate emulated touch events in iframe

Modified: trunk/Source/WebCore/platform/graphics/surfaces/mac/GraphicsSurfaceMac.cpp (137297 => 137298)


--- trunk/Source/WebCore/platform/graphics/surfaces/mac/GraphicsSurfaceMac.cpp	2012-12-11 13:32:23 UTC (rev 137297)
+++ trunk/Source/WebCore/platform/graphics/surfaces/mac/GraphicsSurfaceMac.cpp	2012-12-11 13:37:34 UTC (rev 137298)
@@ -345,7 +345,7 @@
 {
     TransformationMatrix adjustedTransform = transform;
     adjustedTransform.multiply(TransformationMatrix::rectToRect(FloatRect(FloatPoint::zero(), m_private->size()), targetRect));
-    static_cast<TextureMapperGL*>(textureMapper)->drawTextureRectangleARB(m_private->frontBufferTextureID(), 0, m_private->size(), targetRect, adjustedTransform, opacity, mask);
+    static_cast<TextureMapperGL*>(textureMapper)->drawTextureRectangleARB(m_private->frontBufferTextureID(), TextureMapperGL::SupportsBlending, m_private->size(), targetRect, adjustedTransform, opacity, mask);
 }
 
 uint32_t GraphicsSurface::platformFrontBuffer() const
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to