Lines Matching refs:h1
63 const HomogeneousCoordinate& h1, in ComputeClippedPointForEdge() argument
80 DCHECK_NE(h2.w(), h1.w()); in ComputeClippedPointForEdge()
83 DCHECK(h1.ShouldBeClipped() ^ h2.ShouldBeClipped()); in ComputeClippedPointForEdge()
87 SkMScalar t = (w - h1.w()) / (h2.w() - h1.w()); in ComputeClippedPointForEdge()
89 SkMScalar x = (SK_MScalar1 - t) * h1.x() + t * h2.x(); in ComputeClippedPointForEdge()
90 SkMScalar y = (SK_MScalar1 - t) * h1.y() + t * h2.y(); in ComputeClippedPointForEdge()
91 SkMScalar z = (SK_MScalar1 - t) * h1.z() + t * h2.z(); in ComputeClippedPointForEdge()
182 HomogeneousCoordinate h1 = ProjectHomogeneousPoint(transform, q.p1()); in ProjectClippedRect() local
187 return ComputeEnclosingClippedRect(h1, h2, h3, h4); in ProjectClippedRect()
229 HomogeneousCoordinate h1 = in MapClippedQuad() local
243 if (!h1.ShouldBeClipped()) { in MapClippedQuad()
245 h1.CartesianPoint2d(), clipped_quad, num_vertices_in_clipped_quad); in MapClippedQuad()
248 if (h1.ShouldBeClipped() ^ h2.ShouldBeClipped()) { in MapClippedQuad()
250 ComputeClippedPointForEdge(h1, h2).CartesianPoint2d(), in MapClippedQuad()
284 if (h4.ShouldBeClipped() ^ h1.ShouldBeClipped()) { in MapClippedQuad()
286 ComputeClippedPointForEdge(h4, h1).CartesianPoint2d(), in MapClippedQuad()
298 HomogeneousCoordinate h1 = in MapClippedQuad3d() local
312 if (!h1.ShouldBeClipped()) { in MapClippedQuad3d()
314 h1.CartesianPoint3d(), clipped_quad, num_vertices_in_clipped_quad); in MapClippedQuad3d()
317 if (h1.ShouldBeClipped() ^ h2.ShouldBeClipped()) { in MapClippedQuad3d()
319 ComputeClippedPointForEdge(h1, h2).CartesianPoint3d(), in MapClippedQuad3d()
353 if (h4.ShouldBeClipped() ^ h1.ShouldBeClipped()) { in MapClippedQuad3d()
355 ComputeClippedPointForEdge(h4, h1).CartesianPoint3d(), in MapClippedQuad3d()
383 const HomogeneousCoordinate& h1, in ComputeEnclosingClippedRect() argument
393 bool something_clipped = h1.ShouldBeClipped() || h2.ShouldBeClipped() || in ComputeEnclosingClippedRect()
396 gfx::QuadF mapped_quad = gfx::QuadF(h1.CartesianPoint2d(), in ComputeEnclosingClippedRect()
403 bool everything_clipped = h1.ShouldBeClipped() && h2.ShouldBeClipped() && in ComputeEnclosingClippedRect()
413 if (!h1.ShouldBeClipped()) in ComputeEnclosingClippedRect()
415 h1.CartesianPoint2d()); in ComputeEnclosingClippedRect()
417 if (h1.ShouldBeClipped() ^ h2.ShouldBeClipped()) in ComputeEnclosingClippedRect()
422 ComputeClippedPointForEdge(h1, h2) in ComputeEnclosingClippedRect()
453 if (h4.ShouldBeClipped() ^ h1.ShouldBeClipped()) in ComputeEnclosingClippedRect()
458 ComputeClippedPointForEdge(h4, h1) in ComputeEnclosingClippedRect()
476 HomogeneousCoordinate h1 = in MapQuad() local
485 *clipped = h1.ShouldBeClipped() || h2.ShouldBeClipped() || in MapQuad()
490 return gfx::QuadF(h1.CartesianPoint2d(), in MapQuad()
512 HomogeneousCoordinate h1 = in MapQuad3d() local
521 *clipped = h1.ShouldBeClipped() || h2.ShouldBeClipped() || in MapQuad3d()
526 p[0] = h1.CartesianPoint3d(); in MapQuad3d()
531 return gfx::QuadF(h1.CartesianPoint2d(), in MapQuad3d()