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

Unified Diff: cc/quads/draw_polygon.h

Issue 2043283002: Perform BSP polygon splitting and orientation selection in a single step. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update test expectations 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
Index: cc/quads/draw_polygon.h
diff --git a/cc/quads/draw_polygon.h b/cc/quads/draw_polygon.h
index b3bde398c5556533d80deba71f0c030f64e8be30..eae0f2ee1a42d55622d83dbdc3a45e16a198201f 100644
--- a/cc/quads/draw_polygon.h
+++ b/cc/quads/draw_polygon.h
@@ -40,9 +40,12 @@ class CC_EXPORT DrawPolygon {
// Split will only return true if it determines that we got back 2
// intersection points. Only when it returns true will front and back both be
// valid new polygons that are on opposite sides of the splitting plane.
- bool Split(const DrawPolygon& splitter,
- std::unique_ptr<DrawPolygon>* front,
- std::unique_ptr<DrawPolygon>* back);
+ bool SplitPolygon(std::unique_ptr<DrawPolygon> polygon,
enne (OOO) 2016/06/08 22:02:51 Style nit: if you have more than one out parameter
Tobias Sargeant 2016/06/09 16:48:44 Done.
+ std::unique_ptr<DrawPolygon>* front,
+ std::unique_ptr<DrawPolygon>* back);
+ bool SplitPolygon(const DrawPolygon& polygon,
enne (OOO) 2016/06/08 22:02:51 This is a bit awkward. How many test locations us
Tobias Sargeant 2016/06/09 16:48:44 Moved this into the tests.
+ std::unique_ptr<DrawPolygon>* front,
+ std::unique_ptr<DrawPolygon>* back);
float SignedPointDistance(const gfx::Point3F& point) const;
// Checks polygon a against polygon b and returns which side it lies on, or
// whether it crosses (necessitating a split in the BSP tree).
« no previous file with comments | « cc/output/bsp_tree.cc ('k') | cc/quads/draw_polygon.cc » ('j') | cc/quads/draw_polygon.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698