/external/chromium_org/ui/gfx/geometry/ |
D | point3_unittest.cc | 12 gfx::Point3F a(1.6f, 5.1f, 3.2f); in TEST() 17 gfx::Point3F expected; in TEST() 18 gfx::Point3F actual; in TEST() 20 { gfx::Point3F(4.7f, 1.9f, 12.5f), a + v1 }, in TEST() 21 { gfx::Point3F(-1.5f, 8.3f, -6.1f), a - v1 }, in TEST() 25 { gfx::Point3F(12.8f, 0.7f, 9.2f), a + v1 - v2 }, in TEST() 26 { gfx::Point3F(-9.6f, 9.5f, -2.8f), a - v1 + v2 } in TEST() 34 EXPECT_EQ(Point3F(4.7f, 1.9f, 12.5f).ToString(), a.ToString()); in TEST() 37 EXPECT_EQ(Point3F(12.8f, 0.7f, 9.2f).ToString(), a.ToString()); in TEST() 41 gfx::Point3F a(1.6f, 5.2f, 3.2f); in TEST() [all …]
|
D | point3_f.h | 17 class GFX_EXPORT Point3F { 19 Point3F() : x_(0), y_(0), z_(0) {} in Point3F() function 21 Point3F(float x, float y, float z) : x_(x), y_(y), z_(z) {} in Point3F() function 23 explicit Point3F(const PointF& point) : x_(point.x()), y_(point.y()), z_(0) {} in Point3F() function 25 ~Point3F() {} in ~Point3F() 64 float SquaredDistanceTo(const Point3F& other) const { in SquaredDistanceTo() 84 inline bool operator==(const Point3F& lhs, const Point3F& rhs) { 88 inline bool operator!=(const Point3F& lhs, const Point3F& rhs) { 93 GFX_EXPORT Point3F operator+(const Point3F& lhs, const Vector3dF& rhs); 97 GFX_EXPORT Point3F operator-(const Point3F& lhs, const Vector3dF& rhs); [all …]
|
D | point3_f.cc | 11 std::string Point3F::ToString() const { in ToString() 15 Point3F operator+(const Point3F& lhs, const Vector3dF& rhs) { in operator +() 19 return Point3F(x, y, z); in operator +() 24 Point3F operator-(const Point3F& lhs, const Vector3dF& rhs) { in operator -() 28 return Point3F(x, y, z); in operator -() 33 Vector3dF operator-(const Point3F& lhs, const Point3F& rhs) { in operator -()
|
D | box_f.h | 33 BoxF(const Point3F& origin, float width, float height, float depth) in BoxF() 94 const Point3F& origin() const { return origin_; } in origin() 95 void set_origin(const Point3F& origin) { origin_ = origin; } in set_origin() 100 void ExpandTo(const Point3F& point); 114 void ExpandTo(const Point3F& min, const Point3F& max); 116 Point3F origin_;
|
D | box_f.cc | 28 void BoxF::ExpandTo(const Point3F& min, const Point3F& max) { in ExpandTo() 56 void BoxF::ExpandTo(const Point3F& point) { in ExpandTo() 61 ExpandTo(box.origin(), gfx::Point3F(box.right(), box.bottom(), box.front())); in ExpandTo()
|
D | box_unittest.cc | 23 BoxF(Point3F(2.f, 4.f, 6.f), 3.f, 5.f, 7.f).ToString()); in TEST() 25 BoxF(Point3F(2.f, 4.f, 6.f), -3.f, -5.f, -7.f).ToString()); in TEST() 86 Point3F point1(0.5f, 0.5f, 0.5f); in TEST() 87 Point3F point2(-0.5f, -0.5f, -0.5f); in TEST()
|
/external/chromium_org/cc/trees/ |
D | layer_tree_host_common_unittest.cc | 128 gfx::Point3F(), in TEST_F() 135 gfx::Point3F(), in TEST_F() 142 gfx::Point3F(), in TEST_F() 172 gfx::Point3F(), in TEST_F() 179 gfx::Point3F(), in TEST_F() 190 gfx::Point3F(), in TEST_F() 212 gfx::Point3F(), in TEST_F() 228 gfx::Point3F(), in TEST_F() 242 gfx::Point3F(2.5f, 3.0f, 0.f), in TEST_F() 258 gfx::Point3F(2.5f, 3.0f, 0.f), in TEST_F() [all …]
|
D | layer_sorter.cc | 226 gfx::Point3F c1 = in LayerShape() 227 MathUtil::MapPoint(draw_transform, gfx::Point3F(0.f, 0.f, 0.f), &clipped); in LayerShape() 228 gfx::Point3F c2 = in LayerShape() 229 MathUtil::MapPoint(draw_transform, gfx::Point3F(0.f, 1.f, 0.f), &clipped); in LayerShape() 230 gfx::Point3F c3 = in LayerShape() 231 MathUtil::MapPoint(draw_transform, gfx::Point3F(1.f, 0.f, 0.f), &clipped); in LayerShape() 248 gfx::Vector3dF w = gfx::Point3F(p) - transform_origin; in LayerZFromProjectedPoint()
|
D | layer_tree_impl_unittest.cc | 51 gfx::Point3F transform_origin; in TEST_F() 103 gfx::Point3F transform_origin; in TEST_F() 175 gfx::Point3F transform_origin; in TEST_F() 239 gfx::Point3F transform_origin; in TEST_F() 297 gfx::Point3F transform_origin; in TEST_F() 365 gfx::Point3F transform_origin; in TEST_F() 428 gfx::Point3F transform_origin; in TEST_F() 507 gfx::Point3F transform_origin; in TEST_F() 602 gfx::Point3F transform_origin; in TEST_F() 750 gfx::Point3F transform_origin; in TEST_F() [all …]
|
D | layer_tree_host_pixeltest_masks.cc | 151 replica->SetTransformOrigin(gfx::Point3F(50.f, 50.f, 0.f)); in TEST_F() 189 replica->SetTransformOrigin(gfx::Point3F(50.f, 50.f, 0.f)); in TEST_F() 224 replica->SetTransformOrigin(gfx::Point3F(100.f, 100.f, 0.f)); in TEST_F() 266 replica->SetTransformOrigin(gfx::Point3F(100.f, 100.f, 0.f)); in TEST_F()
|
/external/chromium_org/ui/gfx/ |
D | transform_util_unittest.cc | 142 Point3F point; in TEST() 144 point = Point3F(viewport.origin()); in TEST() 146 EXPECT_EQ(Point3F(31.f, 20.f, 10.f), point) << "Transformed origin"; in TEST() 148 point = Point3F(viewport.top_right()); in TEST() 150 EXPECT_EQ(Point3F(31.f, 1940.f, 10.f), point) << "Transformed top-right"; in TEST() 152 point = Point3F(viewport.bottom_left()); in TEST() 154 EXPECT_EQ(Point3F(-3569.f, 20.f, 10.f), point) << "Transformed bottom-left"; in TEST() 156 point = Point3F(viewport.bottom_right()); in TEST() 158 EXPECT_EQ(Point3F(-3569.f, 1940.f, 10.f), point) in TEST()
|
D | interpolated_transform_unittest.cc | 40 ui::InterpolatedScale interpolated_scale(gfx::Point3F(0, 0, 0), in TEST() 41 gfx::Point3F(100, 100, 100)); in TEST() 43 gfx::Point3F(0, 0, 0), gfx::Point3F(100, 100, 100), 100, 200); in TEST() 95 new ui::InterpolatedScale(gfx::Point3F(1, 1, 1), gfx::Point3F(2, 2, 2))); in TEST() 187 new ui::InterpolatedScale(gfx::Point3F(1, 1, 1), in GetMaximize() 188 gfx::Point3F(scale_x, scale_y, 1))); in GetMaximize()
|
D | interpolated_transform.h | 146 InterpolatedScale(const gfx::Point3F& start_scale, 147 const gfx::Point3F& end_scale); 148 InterpolatedScale(const gfx::Point3F& start_scale, 149 const gfx::Point3F& end_scale, 158 const gfx::Point3F start_scale_; 159 const gfx::Point3F end_scale_;
|
D | interpolated_transform.cc | 200 start_scale_(gfx::Point3F(start_scale, start_scale, start_scale)), in InterpolatedScale() 201 end_scale_(gfx::Point3F(end_scale, end_scale, end_scale)) { in InterpolatedScale() 207 start_scale_(gfx::Point3F(start_scale, start_scale, start_scale)), in InterpolatedScale() 208 end_scale_(gfx::Point3F(end_scale, end_scale, end_scale)) { in InterpolatedScale() 211 InterpolatedScale::InterpolatedScale(const gfx::Point3F& start_scale, in InterpolatedScale() 212 const gfx::Point3F& end_scale) in InterpolatedScale() 218 InterpolatedScale::InterpolatedScale(const gfx::Point3F& start_scale, in InterpolatedScale() 219 const gfx::Point3F& end_scale, in InterpolatedScale()
|
D | transform.h | 20 class Point3F; variable 196 void TransformPoint(Point3F* point) const; 203 bool TransformPointReverse(Point3F* point) const; 264 Point3F* point) const;
|
D | transform_unittest.cc | 73 bool PointsAreNearlyEqual(const Point3F& lhs, in PointsAreNearlyEqual() 74 const Point3F& rhs) { in PointsAreNearlyEqual() 236 Point3F p1(value.x1, value.y1, 0); in TEST() 237 Point3F p2(value.x2, value.y2, 0); in TEST() 265 Point3F p1(value.before, value.before, 0); in TEST() 266 Point3F p2(value.after, value.after, 0); in TEST() 296 Point3F p1(value.x1, value.y1, 0); in TEST() 297 Point3F p2(value.x2, value.y2, 0); in TEST() 323 Point3F p0, p1, p2; in TEST() 370 Point3F p0, p1, p2; in TEST() [all …]
|
D | transform.cc | 401 void Transform::TransformPoint(Point3F* point) const { in TransformPoint() 418 bool Transform::TransformPointReverse(Point3F* point) const { in TransformPointReverse() 459 gfx::Point3F point = box->origin(); in TransformBox() 497 Point3F* point) const { in TransformPointInternal()
|
/external/chromium_org/third_party/WebKit/public/platform/ |
D | WebFloatPoint3D.h | 59 WebFloatPoint3D(const gfx::Point3F& p) in WebFloatPoint3D() 66 WebFloatPoint3D& operator=(const gfx::Point3F& p) 73 operator gfx::Point3F() const in Point3F() function 75 return gfx::Point3F(x, y, z); in Point3F()
|
/external/chromium_org/cc/base/ |
D | math_util.h | 54 gfx::Point3F CartesianPoint3d() const { in CartesianPoint3d() 56 return gfx::Point3F(x(), y(), z()); in CartesianPoint3d() 62 return gfx::Point3F(x() * inv_w, y() * inv_w, z() * inv_w); in CartesianPoint3d() 138 static gfx::Point3F MapPoint(const gfx::Transform&, 139 const gfx::Point3F&, 149 static gfx::Point3F ProjectPoint3D(const gfx::Transform& transform, 181 static scoped_ptr<base::Value> AsValue(const gfx::Point3F&);
|
D | math_util.cc | 55 const gfx::Point3F& p) { in MapHomogeneousPoint() 191 MapHomogeneousPoint(transform, gfx::Point3F(src_quad.p1())); in MapClippedQuad() 193 MapHomogeneousPoint(transform, gfx::Point3F(src_quad.p2())); in MapClippedQuad() 195 MapHomogeneousPoint(transform, gfx::Point3F(src_quad.p3())); in MapClippedQuad() 197 MapHomogeneousPoint(transform, gfx::Point3F(src_quad.p4())); in MapClippedQuad() 369 MapHomogeneousPoint(transform, gfx::Point3F(q.p1())); in MapQuad() 371 MapHomogeneousPoint(transform, gfx::Point3F(q.p2())); in MapQuad() 373 MapHomogeneousPoint(transform, gfx::Point3F(q.p3())); in MapQuad() 375 MapHomogeneousPoint(transform, gfx::Point3F(q.p4())); in MapQuad() 391 HomogeneousCoordinate h = MapHomogeneousPoint(transform, gfx::Point3F(p)); in MapPoint() [all …]
|
/external/chromium_org/cc/test/ |
D | layer_tree_host_common_test.h | 16 class Point3F; variable 36 const gfx::Point3F& transform_origin, in SetLayerPropertiesForTestingInternal() 51 const gfx::Point3F& transform_origin, 59 const gfx::Point3F& transform_origin,
|
D | layer_tree_host_common_test.cc | 23 const gfx::Point3F& transform_origin, in SetLayerPropertiesForTesting() 40 const gfx::Point3F& transform_origin, in SetLayerPropertiesForTesting()
|
/external/chromium_org/content/renderer/compositor_bindings/ |
D | web_layer_impl_fixed_bounds_unittest.cc | 33 gfx::Point3F TransformPoint(const gfx::Transform& transform, in TransformPoint() 34 const gfx::Point3F& point) { in TransformPoint() 35 gfx::Point3F result = point; in TransformPoint() 51 gfx::Point3F original_point(10, 20, 1); in CheckBoundsScaleSimple() 52 gfx::Point3F scaled_point( in CheckBoundsScaleSimple()
|
/external/chromium_org/cc/animation/ |
D | transform_operation.cc | 231 static void BoundingBoxForArc(const gfx::Point3F& point, in BoundingBoxForArc() 282 gfx::Point3F point_rotated_from = point; in BoundingBoxForArc() 284 gfx::Point3F point_rotated_to = point; in BoundingBoxForArc() 304 gfx::Point3F origin; in BoundingBoxForArc() 306 gfx::Point3F center = in BoundingBoxForArc() 357 gfx::Point3F rotated = point; in BoundingBoxForArc() 417 gfx::Point3F corner = box.origin(); in BlendedBoundsForBox()
|
/external/chromium_org/cc/layers/ |
D | layer_utils_unittest.cc | 169 gfx::Point3F(bounds.width() * 0.5f, bounds.height() * 0.5f, 0)); in TEST_F() 190 gfx::Point3F(0.375f * 400.f, 0.375f * 400.f, 0.f)); in TEST_F() 203 gfx::Point3F(bounds.width() * 0.5f, bounds.height() * 0.5f, 0)); in TEST_F() 229 gfx::Point3F(bounds.width() * 0.5f, bounds.height() * 0.5f, 0)); in TEST_F()
|