Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(675)

Unified Diff: cc/tiled_layer.cc

Issue 11360093: Mark layers that can use LCD text based on layer transform and opacity. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed unit tests Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: cc/tiled_layer.cc
diff --git a/cc/tiled_layer.cc b/cc/tiled_layer.cc
index 4d4a355a62ab310aba79d3589ce82684736f49fb..323dd9276550201ef159ee5893c32c5b351ff805 100644
--- a/cc/tiled_layer.cc
+++ b/cc/tiled_layer.cc
@@ -276,12 +276,13 @@ void TiledLayer::setNeedsDisplayRect(const gfx::RectF& dirtyRect)
ContentsScalingLayer::setNeedsDisplayRect(dirtyRect);
}
-void TiledLayer::setUseLCDText(bool useLCDText)
+void TiledLayer::setCanUseLCDText(bool useLCDText)
{
- ContentsScalingLayer::setUseLCDText(useLCDText);
+ ContentsScalingLayer::setCanUseLCDText(useLCDText);
LayerTilingData::BorderTexelOption borderTexelOption;
#if OS(ANDROID)
+ DCHECK(!useLCDText);
danakj 2012/11/07 18:15:00 This won't work well with making it a LayerTreeSet
alokp 2012/11/08 22:34:07 I realized that if-else block is not needed anymor
// Always want border texels and GL_LINEAR due to pinch zoom.
borderTexelOption = LayerTilingData::HasBorderTexels;
#else

Powered by Google App Engine
This is Rietveld 408576698