summaryrefslogtreecommitdiffstats
path: root/cc/tiled_layer.cc
diff options
context:
space:
mode:
authoralokp@chromium.org <alokp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-15 05:37:44 +0000
committeralokp@chromium.org <alokp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-15 05:37:44 +0000
commited22978e0be8e4fe2b94315970e1bcef3359b159 (patch)
treec2d8ea099c17c96910dbc8e23fa06bd0fc6a0d43 /cc/tiled_layer.cc
parent2218b2e4e8bb2bf65319a12e656b71beea295907 (diff)
downloadchromium_src-ed22978e0be8e4fe2b94315970e1bcef3359b159.zip
chromium_src-ed22978e0be8e4fe2b94315970e1bcef3359b159.tar.gz
chromium_src-ed22978e0be8e4fe2b94315970e1bcef3359b159.tar.bz2
Always use border texels on layer tiles. We already did that on certain platforms. This patch extends it to all platforms.
BUG=160072 Review URL: https://chromiumcodereview.appspot.com/11360205 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@167870 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/tiled_layer.cc')
-rw-r--r--cc/tiled_layer.cc14
1 files changed, 0 insertions, 14 deletions
diff --git a/cc/tiled_layer.cc b/cc/tiled_layer.cc
index 77be6eb..391ce68 100644
--- a/cc/tiled_layer.cc
+++ b/cc/tiled_layer.cc
@@ -272,20 +272,6 @@ void TiledLayer::setNeedsDisplayRect(const gfx::RectF& dirtyRect)
ContentsScalingLayer::setNeedsDisplayRect(dirtyRect);
}
-void TiledLayer::setUseLCDText(bool useLCDText)
-{
- ContentsScalingLayer::setUseLCDText(useLCDText);
-
- LayerTilingData::BorderTexelOption borderTexelOption;
-#if defined(OS_ANDROID)
- // Always want border texels and GL_LINEAR due to pinch zoom.
- borderTexelOption = LayerTilingData::HasBorderTexels;
-#else
- borderTexelOption = useLCDText ? LayerTilingData::NoBorderTexels : LayerTilingData::HasBorderTexels;
-#endif
- setBorderTexelOption(borderTexelOption);
-}
-
void TiledLayer::invalidateContentRect(const gfx::Rect& contentRect)
{
updateBounds();