Chromium Code Reviews| Index: ui/compositor/dip_util.cc |
| diff --git a/ui/compositor/dip_util.cc b/ui/compositor/dip_util.cc |
| index f7290e05c496ca5a3752f94df6eb27a797cb4609..900ce710c6ebfdb1b974ba358818bbb0baf45656 100644 |
| --- a/ui/compositor/dip_util.cc |
| +++ b/ui/compositor/dip_util.cc |
| @@ -66,7 +66,7 @@ gfx::Rect ConvertRectToPixel(const Layer* layer, |
| namespace { |
| void CheckSnapped(float snapped_position) { |
| - const float kEplison = 0.0001f; |
| + const float kEplison = 0.0002f; |
|
servolk
2017/03/23 21:49:00
Nit: fix the typo while you are at it kEplison ->
servolk
2017/03/23 21:50:23
Also, I'm pretty sure 0.0002f is not enough. I hav
|
| float diff = std::abs(snapped_position - gfx::ToRoundedInt(snapped_position)); |
| DCHECK_LT(diff, kEplison); |
| } |