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

Unified Diff: cc/layer_tree_host_common.cc

Issue 12541006: Use LCD text if the transform IsAlmostIdentityAndIntegerTranslation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: How about this? (not finished yet) Created 7 years, 9 months 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
« no previous file with comments | « no previous file | cc/layer_tree_host_common_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layer_tree_host_common.cc
diff --git a/cc/layer_tree_host_common.cc b/cc/layer_tree_host_common.cc
index c28db4087d3f31f8d5c671f1042c957d8e43b441..f7c38a0a2563c78eaa53349f6632dad5b4e2bd34 100644
--- a/cc/layer_tree_host_common.cc
+++ b/cc/layer_tree_host_common.cc
@@ -731,7 +731,7 @@ static void calculateDrawPropertiesInternal(LayerType* layer, const gfx::Transfo
// To avoid color fringing, LCD text should only be used on opaque layers with just integral translation.
bool layerCanUseLCDText = subtreeCanUseLCDText &&
(accumulatedDrawOpacity == 1.0) &&
- layerDrawProperties.target_space_transform.IsIdentityOrIntegerTranslation();
+ layerDrawProperties.target_space_transform.IsAlmostIdentityOrIntegerTranslation();
enne (OOO) 2013/03/07 21:52:15 I think it's fine to do the check here, but then I
Xianzhu 2013/03/07 21:55:36 I have no idea how to round combinedTransform beca
gfx::RectF contentRect(gfx::PointF(), layer->contentBounds());
« no previous file with comments | « no previous file | cc/layer_tree_host_common_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698