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

Unified Diff: cc/trees/property_tree.cc

Issue 1067423002: Improve DCHECK in PropertyTree::UpdateSnapping (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: SkDoubleToMScalar Created 5 years, 8 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/property_tree.cc
diff --git a/cc/trees/property_tree.cc b/cc/trees/property_tree.cc
index ea0b2ed4d8d864e550a4eaa827ac0094177226f8..b1fd5e4e7ce0ca5eaa0044fca364f527a59b6b91 100644
--- a/cc/trees/property_tree.cc
+++ b/cc/trees/property_tree.cc
@@ -312,7 +312,8 @@ void TransformTree::UpdateSnapping(TransformNode* node) {
gfx::Transform delta = node->data.from_target;
delta *= rounded;
- DCHECK(delta.IsIdentityOr2DTranslation());
+ DCHECK(delta.IsApproximatelyIdentityOrTranslation(SkDoubleToMScalar(1e-4)))
+ << delta.ToString();
gfx::Vector2dF translation = delta.To2dTranslation();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698