Index: cc/base/math_util.h |
diff --git a/cc/base/math_util.h b/cc/base/math_util.h |
index 37b71dd1f3e09fbe2ca6a3e976e3c1b968c942ab..6a13a38580476ae9d83125465b96badb89d44b2e 100644 |
--- a/cc/base/math_util.h |
+++ b/cc/base/math_util.h |
@@ -144,6 +144,11 @@ class CC_EXPORT MathUtil { |
static gfx::PointF ProjectPoint(const gfx::Transform& transform, |
const gfx::PointF& point, |
bool* clipped); |
+ // Identical to the above function, but coerces the homogeneous coordinate to |
+ // a 3d rather than a 2d point. |
+ static gfx::Point3F ProjectPoint3D(const gfx::Transform& transform, |
+ const gfx::PointF& point, |
+ bool* clipped); |
static gfx::Vector2dF ComputeTransform2dScaleComponents(const gfx::Transform&, |
float fallbackValue); |