Title: [90886] trunk/Source/WebCore
- Revision
- 90886
- Author
- [email protected]
- Date
- 2011-07-12 22:12:57 -0700 (Tue, 12 Jul 2011)
Log Message
Removed unnecessary function parameters from TilingData::textureOffset.
https://bugs.webkit.org/show_bug.cgi?id=64245
Patch by David Reveman <[email protected]> on 2011-07-12
Reviewed by Brent Fulgham.
No new tests, no functionality changes.
* platform/graphics/chromium/LayerTilerChromium.cpp:
(WebCore::LayerTilerChromium::drawTiles):
* platform/graphics/gpu/TilingData.cpp:
(WebCore::TilingData::textureOffset):
* platform/graphics/gpu/TilingData.h:
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (90885 => 90886)
--- trunk/Source/WebCore/ChangeLog 2011-07-13 04:23:03 UTC (rev 90885)
+++ trunk/Source/WebCore/ChangeLog 2011-07-13 05:12:57 UTC (rev 90886)
@@ -1,3 +1,18 @@
+2011-07-12 David Reveman <[email protected]>
+
+ Removed unnecessary function parameters from TilingData::textureOffset.
+ https://bugs.webkit.org/show_bug.cgi?id=64245
+
+ Reviewed by Brent Fulgham.
+
+ No new tests, no functionality changes.
+
+ * platform/graphics/chromium/LayerTilerChromium.cpp:
+ (WebCore::LayerTilerChromium::drawTiles):
+ * platform/graphics/gpu/TilingData.cpp:
+ (WebCore::TilingData::textureOffset):
+ * platform/graphics/gpu/TilingData.h:
+
2011-07-12 Ryosuke Niwa <[email protected]>
Move RenderTextControl::indexForVisiblePosition to HTMLTextFormControlElement
Modified: trunk/Source/WebCore/platform/graphics/chromium/LayerTilerChromium.cpp (90885 => 90886)
--- trunk/Source/WebCore/platform/graphics/chromium/LayerTilerChromium.cpp 2011-07-13 04:23:03 UTC (rev 90885)
+++ trunk/Source/WebCore/platform/graphics/chromium/LayerTilerChromium.cpp 2011-07-13 05:12:57 UTC (rev 90886)
@@ -537,7 +537,7 @@
IntRect tileRect = m_tilingData.tileBounds(m_tilingData.tileIndex(tile->i(), tile->j()));
tileRect.move(m_layerPosition.x(), m_layerPosition.y());
- IntPoint texOffset = m_tilingData.textureOffset(tile->i(), tile->j());
+ IntPoint texOffset = m_tilingData.textureOffset();
IntRect texRect = tileTexRect(tile);
float tileWidth = static_cast<float>(texRect.width());
float tileHeight = static_cast<float>(texRect.height());
Modified: trunk/Source/WebCore/platform/graphics/gpu/TilingData.cpp (90885 => 90886)
--- trunk/Source/WebCore/platform/graphics/gpu/TilingData.cpp 2011-07-13 04:23:03 UTC (rev 90885)
+++ trunk/Source/WebCore/platform/graphics/gpu/TilingData.cpp 2011-07-13 05:12:57 UTC (rev 90886)
@@ -248,7 +248,7 @@
srcRectIntersectedNormH * dstRect.height());
}
-IntPoint TilingData::textureOffset(int, int) const
+IntPoint TilingData::textureOffset() const
{
return IntPoint(m_borderTexels, m_borderTexels);
}
Modified: trunk/Source/WebCore/platform/graphics/gpu/TilingData.h (90885 => 90886)
--- trunk/Source/WebCore/platform/graphics/gpu/TilingData.h 2011-07-13 04:23:03 UTC (rev 90885)
+++ trunk/Source/WebCore/platform/graphics/gpu/TilingData.h 2011-07-13 05:12:57 UTC (rev 90886)
@@ -75,7 +75,7 @@
void intersectDrawQuad(const FloatRect& srcRect, const FloatRect& dstRect, int tile, FloatRect* newSrc, FloatRect* newDst) const;
// Difference between tileBound's and tileBoundWithBorder's location().
- IntPoint textureOffset(int xIndex, int yIndex) const;
+ IntPoint textureOffset() const;
private:
TilingData() : m_maxTextureSize(0), m_totalSizeX(0), m_totalSizeY(0) {}
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes