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

Unified Diff: Source/platform/geometry/FloatPoint.h

Issue 1285413007: Unify geometry test printers in a test support target. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: PrintTo instead of operator<< Created 5 years, 4 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 | « Source/platform/geometry/FloatBoxTestHelpers.cpp ('k') | Source/platform/geometry/FloatQuad.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/geometry/FloatPoint.h
diff --git a/Source/platform/geometry/FloatPoint.h b/Source/platform/geometry/FloatPoint.h
index 53b7fb0d22b4499f0b1dba86c924346fea8eaf80..38f626a7bb89e7dc2528786f5b002f59ae165c24 100644
--- a/Source/platform/geometry/FloatPoint.h
+++ b/Source/platform/geometry/FloatPoint.h
@@ -32,6 +32,7 @@
#include "third_party/skia/include/core/SkPoint.h"
#include "wtf/MathExtras.h"
#include <algorithm>
+#include <iosfwd>
#if OS(MACOSX)
typedef struct CGPoint CGPoint;
@@ -270,6 +271,10 @@ inline FloatSize toFloatSize(const FloatPoint& a)
// Find point where lines through the two pairs of points intersect. Returns false if the lines don't intersect.
PLATFORM_EXPORT bool findIntersection(const FloatPoint& p1, const FloatPoint& p2, const FloatPoint& d1, const FloatPoint& d2, FloatPoint& intersection);
+// Redeclared here to avoid ODR issues.
+// See platform/testing/GeometryPrinters.h.
+void PrintTo(const FloatPoint&, std::ostream*);
+
}
#endif
« no previous file with comments | « Source/platform/geometry/FloatBoxTestHelpers.cpp ('k') | Source/platform/geometry/FloatQuad.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698