Title: [108273] trunk/Source/WebCore
- Revision
- 108273
- Author
- [email protected]
- Date
- 2012-02-20 17:15:15 -0800 (Mon, 20 Feb 2012)
Log Message
[Texmap] Layers and tiles appear to have missing pixels in their right/bottom borders
https://bugs.webkit.org/show_bug.cgi?id=78961
The relativeSize member should point to one pixel before the edge, since it's used
by glVertexAttribPointer, which takes edge points and not sizes.
Reviewed by Kenneth Rohde Christiansen.
No new funcionality.
* platform/graphics/opengl/TextureMapperGL.cpp:
(WebCore::BitmapTextureGL::didReset):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (108272 => 108273)
--- trunk/Source/WebCore/ChangeLog 2012-02-21 01:05:11 UTC (rev 108272)
+++ trunk/Source/WebCore/ChangeLog 2012-02-21 01:15:15 UTC (rev 108273)
@@ -1,3 +1,18 @@
+2012-02-20 No'am Rosenthal <[email protected]>
+
+ [Texmap] Layers and tiles appear to have missing pixels in their right/bottom borders
+ https://bugs.webkit.org/show_bug.cgi?id=78961
+
+ The relativeSize member should point to one pixel before the edge, since it's used
+ by glVertexAttribPointer, which takes edge points and not sizes.
+
+ Reviewed by Kenneth Rohde Christiansen.
+
+ No new funcionality.
+
+ * platform/graphics/opengl/TextureMapperGL.cpp:
+ (WebCore::BitmapTextureGL::didReset):
+
2012-02-20 Kihong Kwon <[email protected]>
Add a new API for the Vibration API(W3C).
Modified: trunk/Source/WebCore/platform/graphics/opengl/TextureMapperGL.cpp (108272 => 108273)
--- trunk/Source/WebCore/platform/graphics/opengl/TextureMapperGL.cpp 2012-02-21 01:05:11 UTC (rev 108272)
+++ trunk/Source/WebCore/platform/graphics/opengl/TextureMapperGL.cpp 2012-02-21 01:15:15 UTC (rev 108273)
@@ -617,7 +617,9 @@
GL_CMD(glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE))
GL_CMD(glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, m_textureSize.width(), m_textureSize.height(), 0, GL_RGBA, GL_UNSIGNED_BYTE, 0))
}
- m_relativeSize = FloatSize(float(contentSize().width()) / m_textureSize.width(), float(contentSize().height()) / m_textureSize.height());
+
+ // We decrease the size by one, since this is used as rectangle coordinates and not as size.
+ m_relativeSize = FloatSize(float(contentSize().width() - 1) / m_textureSize.width(), float(contentSize().height() - 1) / m_textureSize.height());
m_surfaceNeedsReset = true;
}
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes