Title: [122288] trunk/Source/WebKit2
Revision
122288
Author
[email protected]
Date
2012-07-10 19:21:50 -0700 (Tue, 10 Jul 2012)

Log Message

[Qt] Enable antialiasing for TextureMapper
https://bugs.webkit.org/show_bug.cgi?id=90915

Reviewed by Martin Robinson.

Enable the new antialiasing functionality for WebLayerTreeRendering.
This will make one-tile layers antialiased when using UI_SIDE_COMPOSITING.

* UIProcess/WebLayerTreeRenderer.cpp:
(WebKit::WebLayerTreeRenderer::ensureRootLayer):

Modified Paths

Diff

Modified: trunk/Source/WebKit2/ChangeLog (122287 => 122288)


--- trunk/Source/WebKit2/ChangeLog	2012-07-11 02:06:00 UTC (rev 122287)
+++ trunk/Source/WebKit2/ChangeLog	2012-07-11 02:21:50 UTC (rev 122288)
@@ -1,3 +1,16 @@
+2012-07-10  No'am Rosenthal  <[email protected]>
+
+        [Qt] Enable antialiasing for TextureMapper
+        https://bugs.webkit.org/show_bug.cgi?id=90915
+
+        Reviewed by Martin Robinson.
+
+        Enable the new antialiasing functionality for WebLayerTreeRendering.
+        This will make one-tile layers antialiased when using UI_SIDE_COMPOSITING.
+
+        * UIProcess/WebLayerTreeRenderer.cpp:
+        (WebKit::WebLayerTreeRenderer::ensureRootLayer):
+
 2012-07-10  Adam Barth  <[email protected]>
 
         WebCore::Settings for Hixie76 WebSocket protocol doesn't do anything and should be removed

Modified: trunk/Source/WebKit2/UIProcess/WebLayerTreeRenderer.cpp (122287 => 122288)


--- trunk/Source/WebKit2/UIProcess/WebLayerTreeRenderer.cpp	2012-07-11 02:06:00 UTC (rev 122287)
+++ trunk/Source/WebKit2/UIProcess/WebLayerTreeRenderer.cpp	2012-07-11 02:21:50 UTC (rev 122288)
@@ -414,8 +414,10 @@
 {
     if (m_rootLayer)
         return;
-    if (!m_textureMapper)
+    if (!m_textureMapper) {
         m_textureMapper = TextureMapper::create(TextureMapper::OpenGLMode);
+        static_cast<TextureMapperGL*>(m_textureMapper.get())->setEnableEdgeDistanceAntialiasing(true);
+    }
 
     m_rootLayer = createLayer(InvalidWebLayerID);
     m_rootLayer->setMasksToBounds(false);
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to