Title: [88577] trunk/Source/WebCore
- Revision
- 88577
- Author
- [email protected]
- Date
- 2011-06-10 16:55:31 -0700 (Fri, 10 Jun 2011)
Log Message
2011-06-10 Alok Priyadarshi <[email protected]>
Reviewed by James Robinson.
[chromium] Top portion of page is rendered messed up with accelerated drawing
https://bugs.webkit.org/show_bug.cgi?id=62484
Fixed the math in flipping the texture from bottom-up to top-down.
Test: compositing/repaint/shrink-layer.html (existing)
* platform/graphics/chromium/LayerTilerChromium.cpp:
(WebCore::LayerTilerChromium::draw):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (88576 => 88577)
--- trunk/Source/WebCore/ChangeLog 2011-06-10 23:35:46 UTC (rev 88576)
+++ trunk/Source/WebCore/ChangeLog 2011-06-10 23:55:31 UTC (rev 88577)
@@ -1,3 +1,16 @@
+2011-06-10 Alok Priyadarshi <[email protected]>
+
+ Reviewed by James Robinson.
+
+ [chromium] Top portion of page is rendered messed up with accelerated drawing
+ https://bugs.webkit.org/show_bug.cgi?id=62484
+
+ Fixed the math in flipping the texture from bottom-up to top-down.
+ Test: compositing/repaint/shrink-layer.html (existing)
+
+ * platform/graphics/chromium/LayerTilerChromium.cpp:
+ (WebCore::LayerTilerChromium::draw):
+
2011-06-10 Tony Chang <[email protected]>
Reviewed by Ojan Vafai.
Modified: trunk/Source/WebCore/platform/graphics/chromium/LayerTilerChromium.cpp (88576 => 88577)
--- trunk/Source/WebCore/platform/graphics/chromium/LayerTilerChromium.cpp 2011-06-10 23:35:46 UTC (rev 88576)
+++ trunk/Source/WebCore/platform/graphics/chromium/LayerTilerChromium.cpp 2011-06-10 23:55:31 UTC (rev 88577)
@@ -378,7 +378,7 @@
// OpenGL coordinate system is bottom-up.
// If tile texture is top-down, we need to flip the texture coordinates.
if (m_textureUpdater->orientation() == LayerTextureUpdater::TopDownOrientation) {
- texTranslateY += 1.0;
+ texTranslateY = 1.0 - texTranslateY;
texScaleY *= -1.0;
}
drawTexturedQuad(context, layerRenderer()->projectionMatrix(), tileMatrix, tileRect.width(), tileRect.height(), opacity, texTranslateX, texTranslateY, texScaleX, texScaleY, program);
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes