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

Unified Diff: cc/quads/draw_polygon.h

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 | « no previous file | cc/quads/draw_polygon.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/quads/draw_polygon.h
diff --git a/cc/quads/draw_polygon.h b/cc/quads/draw_polygon.h
index 2dc642cde3195cd8beb47c74b72476cfb9ba1a5f..8c89e599334ed19977c71b537c0425cc110893b4 100644
--- a/cc/quads/draw_polygon.h
+++ b/cc/quads/draw_polygon.h
@@ -56,7 +56,10 @@ class CC_EXPORT DrawPolygon {
bool is_split() const { return is_split_; }
std::unique_ptr<DrawPolygon> CreateCopy();
+ // These are helper functions for testing.
void RecomputeNormalForTesting();
+ friend bool IsPlanarForTesting(const DrawPolygon& p);
+ friend bool IsConvexForTesting(const DrawPolygon& p);
private:
void ApplyTransform(const gfx::Transform& transform);
« no previous file with comments | « no previous file | cc/quads/draw_polygon.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698