Title: [102828] trunk/Source/WebCore
Revision
102828
Author
[email protected]
Date
2011-12-14 14:38:06 -0800 (Wed, 14 Dec 2011)

Log Message

[chromium] Compositor needs to set texture filtering on canvas layers
https://bugs.webkit.org/show_bug.cgi?id=74530

Reviewed by James Robinson.

* platform/graphics/chromium/cc/CCCanvasLayerImpl.cpp:
(WebCore::CCCanvasLayerImpl::draw):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (102827 => 102828)


--- trunk/Source/WebCore/ChangeLog	2011-12-14 22:21:33 UTC (rev 102827)
+++ trunk/Source/WebCore/ChangeLog	2011-12-14 22:38:06 UTC (rev 102828)
@@ -1,3 +1,13 @@
+2011-12-14  Adrienne Walker  <[email protected]>
+
+        [chromium] Compositor needs to set texture filtering on canvas layers
+        https://bugs.webkit.org/show_bug.cgi?id=74530
+
+        Reviewed by James Robinson.
+
+        * platform/graphics/chromium/cc/CCCanvasLayerImpl.cpp:
+        (WebCore::CCCanvasLayerImpl::draw):
+
 2011-12-14  Tony Chang  <[email protected]>
 
         Remove added calls to CSSStyleSelector to gain back another 2% in page cyclers

Modified: trunk/Source/WebCore/platform/graphics/chromium/cc/CCCanvasLayerImpl.cpp (102827 => 102828)


--- trunk/Source/WebCore/platform/graphics/chromium/cc/CCCanvasLayerImpl.cpp	2011-12-14 22:21:33 UTC (rev 102827)
+++ trunk/Source/WebCore/platform/graphics/chromium/cc/CCCanvasLayerImpl.cpp	2011-12-14 22:38:06 UTC (rev 102828)
@@ -56,6 +56,9 @@
     GraphicsContext3D* context = layerRenderer->context();
     GLC(context, context->activeTexture(GraphicsContext3D::TEXTURE0));
     GLC(context, context->bindTexture(GraphicsContext3D::TEXTURE_2D, m_textureId));
+    GLC(context, context->texParameteri(GraphicsContext3D::TEXTURE_2D, GraphicsContext3D::TEXTURE_MIN_FILTER, GraphicsContext3D::LINEAR));
+    GLC(context, context->texParameteri(GraphicsContext3D::TEXTURE_2D, GraphicsContext3D::TEXTURE_MAG_FILTER, GraphicsContext3D::LINEAR));
+
     if (!m_hasAlpha) {
         // Even though the WebGL layer's texture was likely allocated
         // as GL_RGB, disable blending anyway for better robustness.
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to