summaryrefslogtreecommitdiffstats
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
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
-rw-r--r--cc/layer.h2
-rw-r--r--cc/tiled_layer.cc14
-rw-r--r--cc/tiled_layer.h2
3 files changed, 1 insertions, 17 deletions
diff --git a/cc/layer.h b/cc/layer.h
index caa46c1..97bd200 100644
--- a/cc/layer.h
+++ b/cc/layer.h
@@ -173,7 +173,7 @@ public:
void setUseParentBackfaceVisibility(bool useParentBackfaceVisibility) { m_useParentBackfaceVisibility = useParentBackfaceVisibility; }
bool useParentBackfaceVisibility() const { return m_useParentBackfaceVisibility; }
- virtual void setUseLCDText(bool);
+ void setUseLCDText(bool);
bool useLCDText() const { return m_useLCDText; }
virtual void setLayerTreeHost(LayerTreeHost*);
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();
diff --git a/cc/tiled_layer.h b/cc/tiled_layer.h
index 052bb99..11007e1 100644
--- a/cc/tiled_layer.h
+++ b/cc/tiled_layer.h
@@ -25,8 +25,6 @@ public:
virtual void setNeedsDisplayRect(const gfx::RectF&) OVERRIDE;
- virtual void setUseLCDText(bool) OVERRIDE;
-
virtual void setLayerTreeHost(LayerTreeHost*) OVERRIDE;
virtual void setTexturePriorities(const PriorityCalculator&) OVERRIDE;