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

Unified Diff: cc/base/math_util.h

Issue 2803853007: Ignore rounding error between clip_layer_length_ and scroll_layer_length_ (Closed)
Patch Set: Created 3 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 | cc/base/math_util.cc » ('j') | cc/layers/scrollbar_layer_impl_base.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/base/math_util.h
diff --git a/cc/base/math_util.h b/cc/base/math_util.h
index 7bccfea37181ee7e70cb5686a8c0a6f5b5589aff..f6af9538716fd7f3ea0a3ae33cd6b88e7df8031e 100644
--- a/cc/base/math_util.h
+++ b/cc/base/math_util.h
@@ -296,6 +296,7 @@ class CC_BASE_EXPORT MathUtil {
// Returns vector that y axis (0,1,0) transforms to under given transform.
static gfx::Vector3dF GetYAxis(const gfx::Transform& transform);
+ static bool IsFloatNearlyTheSame(float left, float right);
static bool IsNearlyTheSameForTesting(float left, float right);
static bool IsNearlyTheSameForTesting(const gfx::PointF& l,
const gfx::PointF& r);
« no previous file with comments | « no previous file | cc/base/math_util.cc » ('j') | cc/layers/scrollbar_layer_impl_base.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698