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

Unified Diff: ui/compositor/dip_util.cc

Issue 1935883002: win: Fix black pixel artifact at right and bottom Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 6 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 | ui/views/widget/desktop_aura/desktop_native_widget_aura.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/dip_util.cc
diff --git a/ui/compositor/dip_util.cc b/ui/compositor/dip_util.cc
index f7290e05c496ca5a3752f94df6eb27a797cb4609..fdc27cf672a4e3e68c2da16d8b93d6bcb404f2b0 100644
--- a/ui/compositor/dip_util.cc
+++ b/ui/compositor/dip_util.cc
@@ -66,9 +66,9 @@ gfx::Rect ConvertRectToPixel(const Layer* layer,
namespace {
void CheckSnapped(float snapped_position) {
- const float kEplison = 0.0001f;
+ const float kEpsilon = 0.001f;
float diff = std::abs(snapped_position - gfx::ToRoundedInt(snapped_position));
- DCHECK_LT(diff, kEplison);
+ DCHECK_LT(diff, kEpsilon);
}
} // namespace
« no previous file with comments | « no previous file | ui/views/widget/desktop_aura/desktop_native_widget_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698