summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/platform/graphics/android/rendering/Tile.cpp
diff options
context:
space:
mode:
authorTeng-Hui Zhu <ztenghui@google.com>2012-04-17 10:38:53 -0700
committerTeng-Hui Zhu <ztenghui@google.com>2012-04-17 14:47:34 -0700
commit3efc67e0caf0b63fe0350d6896d2cbc08661f5d7 (patch)
tree041cfeae876cee9bde2f6c117a52b9657b36fe3a /Source/WebCore/platform/graphics/android/rendering/Tile.cpp
parentc9efa1bf37f8bbf12a5b5dd465cbfb06c8053d9c (diff)
downloadexternal_webkit-3efc67e0caf0b63fe0350d6896d2cbc08661f5d7.zip
external_webkit-3efc67e0caf0b63fe0350d6896d2cbc08661f5d7.tar.gz
external_webkit-3efc67e0caf0b63fe0350d6896d2cbc08661f5d7.tar.bz2
Enable point sample when the texel and pixel is 1:1 mapping.
Change-Id: I532ad6b038d3b141bd212c8c408533fec0e9616e
Diffstat (limited to 'Source/WebCore/platform/graphics/android/rendering/Tile.cpp')
-rw-r--r--Source/WebCore/platform/graphics/android/rendering/Tile.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/WebCore/platform/graphics/android/rendering/Tile.cpp b/Source/WebCore/platform/graphics/android/rendering/Tile.cpp
index 178958d..f2aa9a0 100644
--- a/Source/WebCore/platform/graphics/android/rendering/Tile.cpp
+++ b/Source/WebCore/platform/graphics/android/rendering/Tile.cpp
@@ -209,7 +209,7 @@ void Tile::setRepaintPending(bool pending)
bool Tile::drawGL(float opacity, const SkRect& rect, float scale,
const TransformationMatrix* transform,
- bool forceBlending)
+ bool forceBlending, bool usePointSampling)
{
if (m_x < 0 || m_y < 0 || m_scale != scale)
return false;
@@ -219,7 +219,8 @@ bool Tile::drawGL(float opacity, const SkRect& rect, float scale,
if (!m_frontTexture)
return false;
- m_frontTexture->drawGL(isLayerTile(), rect, opacity, transform, forceBlending);
+ m_frontTexture->drawGL(isLayerTile(), rect, opacity, transform,
+ forceBlending, usePointSampling);
return true;
}