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

Unified Diff: cc/quads/draw_polygon.cc

Issue 2408203005: Add tests where we split near an edge. (Closed)
Patch Set: rebased Created 4 years, 2 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 | « cc/quads/draw_polygon.h ('k') | cc/quads/draw_polygon_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/quads/draw_polygon.cc
diff --git a/cc/quads/draw_polygon.cc b/cc/quads/draw_polygon.cc
index 86cb87319426d18f5ee1a1ddc3c6839d994ab289..59ecbef0edbacff11765138e2edf126695cfdfd6 100644
--- a/cc/quads/draw_polygon.cc
+++ b/cc/quads/draw_polygon.cc
@@ -237,10 +237,6 @@ void DrawPolygon::SplitPolygon(std::unique_ptr<DrawPolygon> polygon,
return;
}
- // There should be at most two points that are considered to be on the thick
- // plane. If this is not the case, then the polygon is not convex.
- DCHECK_LE(num_points - pos_count - neg_count, 2u);
-
// Handle splitting case.
size_t front_begin;
size_t back_begin;
« no previous file with comments | « cc/quads/draw_polygon.h ('k') | cc/quads/draw_polygon_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698