Home
last modified time | relevance | path

Searched refs:PointF (Results 1 – 25 of 109) sorted by relevance

12345

/external/chromium_org/ui/gfx/
Dpoint_unittest.cc17 int TestPointF(const PointF& p) { in TestPointF()
29 PointF b(10, 20); in TEST()
43 EXPECT_FALSE(PointF(0.1f, 0).IsOrigin()); in TEST()
44 EXPECT_FALSE(PointF(0, 0.1f).IsOrigin()); in TEST()
45 EXPECT_FALSE(PointF(0.1f, 2).IsOrigin()); in TEST()
46 EXPECT_FALSE(PointF(-0.1f, 0).IsOrigin()); in TEST()
47 EXPECT_FALSE(PointF(0, -0.1f).IsOrigin()); in TEST()
48 EXPECT_FALSE(PointF(-0.1f, -2).IsOrigin()); in TEST()
49 EXPECT_TRUE(PointF(0, 0).IsOrigin()); in TEST()
81 EXPECT_EQ(Point(0, 0), ToRoundedPoint(PointF(0, 0))); in TEST()
[all …]
Dquad_unittest.cc15 PointF a(1, 1); in TEST()
16 PointF b(2, 1); in TEST()
17 PointF c(2, 2); in TEST()
18 PointF d(1, 2); in TEST()
19 PointF e; in TEST()
55 PointF a(1, 1); in TEST()
56 PointF b(2, 1); in TEST()
57 PointF c(2, 2); in TEST()
58 PointF d(1, 2); in TEST()
64 QuadF expected1(PointF(4.5f, -1.5f), in TEST()
[all …]
Dpoint_f.h17 class GFX_EXPORT PointF : public PointBase<PointF, float, Vector2dF> {
19 PointF() : PointBase<PointF, float, Vector2dF>(0, 0) {} in PointF() function
20 PointF(float x, float y) : PointBase<PointF, float, Vector2dF>(x, y) {} in PointF() function
21 ~PointF() {} in ~PointF()
35 inline bool operator==(const PointF& lhs, const PointF& rhs) {
39 inline bool operator!=(const PointF& lhs, const PointF& rhs) {
43 inline PointF operator+(const PointF& lhs, const Vector2dF& rhs) {
44 PointF result(lhs);
49 inline PointF operator-(const PointF& lhs, const Vector2dF& rhs) {
50 PointF result(lhs);
[all …]
Dquad_f.h23 QuadF(const PointF& p1, const PointF& p2, const PointF& p3, const PointF& p4) in QuadF()
37 void set_p1(const PointF& p) { p1_ = p; } in set_p1()
38 void set_p2(const PointF& p) { p2_ = p; } in set_p2()
39 void set_p3(const PointF& p) { p3_ = p; } in set_p3()
40 void set_p4(const PointF& p) { p4_ = p; } in set_p4()
42 const PointF& p1() const { return p1_; } in p1()
43 const PointF& p2() const { return p2_; } in p2()
44 const PointF& p3() const { return p3_; } in p3()
45 const PointF& p4() const { return p4_; } in p4()
56 bool Contains(const gfx::PointF& point) const;
[all …]
Drect_f.h21 : public RectBase<RectF, PointF, SizeF, InsetsF, Vector2dF, float> {
24 : RectBase<RectF, PointF, SizeF, InsetsF, Vector2dF, float> in RectF()
28 : RectBase<RectF, PointF, SizeF, InsetsF, Vector2dF, float> in RectF()
32 : RectBase<RectF, PointF, SizeF, InsetsF, Vector2dF, float> in RectF()
33 (PointF(x, y), SizeF(width, height)) {} in RectF()
36 : RectBase<RectF, PointF, SizeF, InsetsF, Vector2dF, float> in RectF()
39 RectF(const PointF& origin, const SizeF& size) in RectF()
40 : RectBase<RectF, PointF, SizeF, InsetsF, Vector2dF, float> in RectF()
105 GFX_EXPORT RectF BoundingRect(const PointF& p1, const PointF& p2);
108 extern template class RectBase<RectF, PointF, SizeF, InsetsF, Vector2dF, float>;
Drect_unittest.cc354 PointF center; in TEST()
358 EXPECT_TRUE(center == PointF(10, 10)); in TEST()
362 EXPECT_TRUE(center == PointF(20, 20)); in TEST()
366 EXPECT_TRUE(center == PointF(21, 21)); in TEST()
370 EXPECT_TRUE(center == PointF(10, 20)); in TEST()
372 EXPECT_TRUE(center == PointF(20, 10)); in TEST()
376 EXPECT_TRUE(center == PointF(20.5f, 20.5f)); in TEST()
380 EXPECT_TRUE(center == PointF(21.5f, 21.5f)); in TEST()
762 PointF a; in TEST()
763 PointF b; in TEST()
[all …]
Dpoint_f.cc11 template class PointBase<PointF, float, Vector2dF>;
13 std::string PointF::ToString() const { in ToString()
17 PointF ScalePoint(const PointF& p, float x_scale, float y_scale) { in ScalePoint()
18 PointF scaled_p(p); in ScalePoint()
Dquad_f.cc14 p1_ = PointF(rect.x(), rect.y()); in operator =()
15 p2_ = PointF(rect.right(), rect.y()); in operator =()
16 p3_ = PointF(rect.right(), rect.bottom()); in operator =()
17 p4_ = PointF(rect.x(), rect.bottom()); in operator =()
61 static inline bool PointIsInTriangle(const PointF& point, in PointIsInTriangle()
62 const PointF& r1, in PointIsInTriangle()
63 const PointF& r2, in PointIsInTriangle()
64 const PointF& r3) { in PointIsInTriangle()
89 bool QuadF::Contains(const PointF& point) const { in Contains()
Dpoint_conversions.h14 GFX_EXPORT Point ToFlooredPoint(const PointF& point);
17 GFX_EXPORT Point ToCeiledPoint(const PointF& point);
20 GFX_EXPORT Point ToRoundedPoint(const PointF& point);
Drect_f.cc17 template class RectBase<RectF, PointF, SizeF, InsetsF, Vector2dF, float>;
19 typedef class RectBase<RectF, PointF, SizeF, InsetsF, Vector2dF,
52 RectF BoundingRect(const PointF& p1, const PointF& p2) { in BoundingRect()
Dpoint_conversions.cc11 Point ToFlooredPoint(const PointF& point) { in ToFlooredPoint()
17 Point ToCeiledPoint(const PointF& point) { in ToCeiledPoint()
23 Point ToRoundedPoint(const PointF& point) { in ToRoundedPoint()
/external/chromium_org/cc/trees/
Dlayer_tree_host_common_unittest.cc45 gfx::PointF anchor, in SetLayerPropertiesForTestingInternal()
46 gfx::PointF position, in SetLayerPropertiesForTestingInternal()
60 gfx::PointF anchor, in SetLayerPropertiesForTesting()
61 gfx::PointF position, in SetLayerPropertiesForTesting()
76 gfx::PointF anchor, in SetLayerPropertiesForTesting()
77 gfx::PointF position, in SetLayerPropertiesForTesting()
236 gfx::PointF(), in TEST_F()
237 gfx::PointF(), in TEST_F()
243 gfx::PointF(), in TEST_F()
244 gfx::PointF(), in TEST_F()
[all …]
Dlayer_tree_host_unittest_occlusion.cc89 gfx::PointF position, in SetLayerPropertiesForTesting()
100 layer->SetAnchorPoint(gfx::PointF()); in SetLayerPropertiesForTesting()
126 gfx::PointF(0.f, 0.f), gfx::Size(200, 200), true); in SetupTree()
129 gfx::PointF(10.f, 10.f), gfx::Size(500, 500), false); in SetupTree()
132 gfx::PointF(-10.f, -10.f), gfx::Size(20, 500), true); in SetupTree()
156 gfx::PointF(0.f, 0.f), gfx::Size(200, 200), true); in SetupTree()
159 gfx::PointF(10.f, 10.f), gfx::Size(500, 500), true); in SetupTree()
162 gfx::PointF(-10.f, -10.f), gfx::Size(20, 500), true); in SetupTree()
185 gfx::PointF(0.f, 0.f), gfx::Size(200, 200), true); in SetupTree()
188 gfx::PointF(10.f, 10.f), gfx::Size(500, 500), false); in SetupTree()
[all …]
Docclusion_tracker_unittest.cc203 gfx::PointF position, in CreateRoot()
220 gfx::PointF position, in CreateLayer()
231 gfx::PointF position, in CreateSurface()
242 gfx::PointF position, in CreateDrawingLayer()
267 gfx::PointF position, in CreateReplicaLayer()
283 SetProperties(layer_ptr, identity_matrix, gfx::PointF(), bounds); in CreateMaskLayer()
291 gfx::PointF position, in CreateDrawingSurface()
416 gfx::PointF position, in SetBaseProperties()
420 layer->SetAnchorPoint(gfx::PointF()); in SetBaseProperties()
427 gfx::PointF position, in SetProperties()
[all …]
Ddamage_tracker_unittest.cc82 root->SetPosition(gfx::PointF()); in CreateTestTreeWithOneSurface()
83 root->SetAnchorPoint(gfx::PointF()); in CreateTestTreeWithOneSurface()
90 child->SetPosition(gfx::PointF(100.f, 100.f)); in CreateTestTreeWithOneSurface()
91 child->SetAnchorPoint(gfx::PointF()); in CreateTestTreeWithOneSurface()
116 root->SetPosition(gfx::PointF()); in CreateTestTreeWithTwoSurfaces()
117 root->SetAnchorPoint(gfx::PointF()); in CreateTestTreeWithTwoSurfaces()
124 child1->SetPosition(gfx::PointF(100.f, 100.f)); in CreateTestTreeWithTwoSurfaces()
125 child1->SetAnchorPoint(gfx::PointF()); in CreateTestTreeWithTwoSurfaces()
136 child2->SetPosition(gfx::PointF(11.f, 11.f)); in CreateTestTreeWithTwoSurfaces()
137 child2->SetAnchorPoint(gfx::PointF()); in CreateTestTreeWithTwoSurfaces()
[all …]
Dlayer_tree_host_pixeltest_readback.cc661 background->SetAnchorPoint(gfx::PointF()); in TEST_F()
666 green->SetAnchorPoint(gfx::PointF()); in TEST_F()
672 blue->SetAnchorPoint(gfx::PointF()); in TEST_F()
692 background->SetAnchorPoint(gfx::PointF()); in TEST_F()
697 green->SetAnchorPoint(gfx::PointF()); in TEST_F()
703 blue->SetAnchorPoint(gfx::PointF()); in TEST_F()
723 background->SetAnchorPoint(gfx::PointF()); in TEST_F()
728 green->SetAnchorPoint(gfx::PointF()); in TEST_F()
735 blue->SetAnchorPoint(gfx::PointF()); in TEST_F()
756 background->SetAnchorPoint(gfx::PointF()); in TEST_F()
[all …]
/external/chromium_org/cc/resources/
Dlayer_quad_unittest.cc14 gfx::PointF p1(-0.5f, -0.5f); in TEST()
15 gfx::PointF p2(0.5f, -0.5f); in TEST()
16 gfx::PointF p3(0.5f, 0.5f); in TEST()
17 gfx::PointF p4(-0.5f, 0.5f); in TEST()
29 gfx::PointF p1(-0.5f, -0.5f); in TEST()
30 gfx::PointF p2(0.5f, -0.5f); in TEST()
31 gfx::PointF p3(0.5f, 0.5f); in TEST()
32 gfx::PointF p4(-0.5f, 0.5f); in TEST()
/external/chromium_org/cc/quads/
Dtexture_draw_quad.h24 gfx::PointF uv_top_left,
25 gfx::PointF uv_bottom_right,
37 gfx::PointF uv_top_left,
38 gfx::PointF uv_bottom_right,
45 gfx::PointF uv_top_left;
46 gfx::PointF uv_bottom_right;
/external/chromium_org/cc/base/
Dmath_util.h42 gfx::PointF CartesianPoint2d() const { in CartesianPoint2d()
44 return gfx::PointF(x(), y()); in CartesianPoint2d()
50 return gfx::PointF(x() * inv_w, y() * inv_w); in CartesianPoint2d()
116 gfx::PointF clipped_quad[8],
119 static gfx::RectF ComputeEnclosingRectOfVertices(gfx::PointF vertices[],
132 static gfx::PointF MapPoint(const gfx::Transform& transform,
133 gfx::PointF point,
141 static gfx::PointF ProjectPoint(const gfx::Transform& transform,
142 gfx::PointF point,
172 static scoped_ptr<base::Value> AsValue(gfx::PointF q);
Dmath_util_unittest.cc50 gfx::RectF(gfx::PointF(-100, -100), gfx::SizeF(90, 90)), result, 0.15f); in TEST()
54 gfx::PointF vertices[3]; in TEST()
57 vertices[0] = gfx::PointF(-10, -100); in TEST()
58 vertices[1] = gfx::PointF(-100, -10); in TEST()
59 vertices[2] = gfx::PointF(-30, -30); in TEST()
68 EXPECT_FLOAT_RECT_EQ(gfx::RectF(gfx::PointF(-100, -100), gfx::SizeF(90, 90)), in TEST()
/external/chromium_org/remoting/android/java/src/org/chromium/chromoting/
DTapGestureDetector.java8 import android.graphics.PointF;
52 private HashMap<Integer, PointF> mInitialPositions = new HashMap<Integer, PointF>();
135 new PointF(event.getX(pointerIndex), event.getY(pointerIndex))); in trackDownEvent()
160 PointF downPoint = mInitialPositions.get(pointerId); in trackMoveEvent()
164 mInitialPositions.put(pointerId, new PointF(currentX, currentY)); in trackMoveEvent()
/external/chromium_org/cc/layers/
Dui_resource_layer.h35 void SetUV(gfx::PointF top_left, gfx::PointF bottom_right);
57 gfx::PointF uv_top_left_;
58 gfx::PointF uv_bottom_right_;
Dui_resource_layer_impl.h36 void SetUV(gfx::PointF top_left, gfx::PointF bottom_right);
61 gfx::PointF uv_top_left_;
62 gfx::PointF uv_bottom_right_;
Dtexture_layer_impl.h48 void set_uv_top_left(gfx::PointF top_left) { uv_top_left_ = top_left; } in set_uv_top_left()
49 void set_uv_bottom_right(gfx::PointF bottom_right) { in set_uv_bottom_right()
77 gfx::PointF uv_top_left_;
78 gfx::PointF uv_bottom_right_;
/external/chromium_org/third_party/WebKit/public/platform/
DWebFloatPoint.h79 WebFloatPoint(const gfx::PointF& p) in WebFloatPoint()
85 WebFloatPoint& operator=(const gfx::PointF& p)
92 operator gfx::PointF() const in PointF() function
94 return gfx::PointF(x, y); in PointF()

12345