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

Unified Diff: cc/quads/draw_polygon.h

Issue 2408203005: Add tests where we split near an edge. (Closed)
Patch Set: Fix Windows truncation error 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') | cc/quads/draw_polygon_unittest.cc » ('J')
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..3babcca02e045aa0b1682b0b6aa0ed12eed880d8 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();
+ bool IsPlanarForTesting() const;
+ bool IsConvexForTesting() const;
private:
void ApplyTransform(const gfx::Transform& transform);
« no previous file with comments | « no previous file | cc/quads/draw_polygon.cc » ('j') | cc/quads/draw_polygon_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698