diff options
author | petermayo <petermayo@chromium.org> | 2015-11-06 13:56:25 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-11-06 21:57:18 +0000 |
commit | bce297cc9cae657e3a4b0539dc50cf61a77d0103 (patch) | |
tree | c82a02f3d9f513f9863af05a596637386fdeaa17 /cc/quads/draw_polygon.cc | |
parent | 5fb37b7f4d3de55e132651c483fb4ba4a8bb3060 (diff) | |
download | chromium_src-bce297cc9cae657e3a4b0539dc50cf61a77d0103.zip chromium_src-bce297cc9cae657e3a4b0539dc50cf61a77d0103.tar.gz chromium_src-bce297cc9cae657e3a4b0539dc50cf61a77d0103.tar.bz2 |
Decrease the presumed thickness of polygons.
This addresses some of the common expectations that single digit differences in
Z value will change rendering order.
BUG=499397
R=flackr@chromium.org
TEST=Rendering of Z stacked boxes, test case in bug.
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel
Review URL: https://codereview.chromium.org/1412143004
Cr-Commit-Position: refs/heads/master@{#358416}
Diffstat (limited to 'cc/quads/draw_polygon.cc')
-rw-r--r-- | cc/quads/draw_polygon.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cc/quads/draw_polygon.cc b/cc/quads/draw_polygon.cc index 9ff1af6..02c1283 100644 --- a/cc/quads/draw_polygon.cc +++ b/cc/quads/draw_polygon.cc @@ -16,7 +16,7 @@ static const float coplanar_dot_epsilon = 0.001f; // This threshold controls how "thick" a plane is. If a point's distance is // <= |compare_threshold|, then it is considered on the plane. Only when this // boundary is crossed do we consider doing splitting. -static const float compare_threshold = 1.0f; +static const float compare_threshold = 0.1f; // |split_threshold| is lower in this case because we want the points created // during splitting to be well within the range of |compare_threshold| for // comparison purposes. The splitting operation will produce intersection points @@ -27,7 +27,7 @@ static const float compare_threshold = 1.0f; // this range. // This is really supposd to be compare_threshold / 2.0f, but that would // create another static initializer. -static const float split_threshold = 0.5f; +static const float split_threshold = 0.05f; static const float normalized_threshold = 0.001f; } // namespace |