Home
last modified time | relevance | path

Searched refs:LinearIntValueBetween (Results 1 – 4 of 4) sorted by relevance

/external/chromium_org/ui/gfx/animation/
Dtween_unittest.cc103 TEST(TweenTest, LinearIntValueBetween) { in TEST() argument
104 EXPECT_EQ(0, Tween::LinearIntValueBetween(0.0, 0, 2)); in TEST()
105 EXPECT_EQ(0, Tween::LinearIntValueBetween(0.5 / 4.0, 0, 2)); in TEST()
106 EXPECT_EQ(0, Tween::LinearIntValueBetween(0.99 / 4.0, 0, 2)); in TEST()
108 EXPECT_EQ(1, Tween::LinearIntValueBetween(1.0 / 4.0, 0, 2)); in TEST()
109 EXPECT_EQ(1, Tween::LinearIntValueBetween(1.5 / 4.0, 0, 2)); in TEST()
110 EXPECT_EQ(1, Tween::LinearIntValueBetween(2.0 / 4.0, 0, 2)); in TEST()
111 EXPECT_EQ(1, Tween::LinearIntValueBetween(2.5 / 4.0, 0, 2)); in TEST()
112 EXPECT_EQ(1, Tween::LinearIntValueBetween(2.99 / 4.0, 0, 2)); in TEST()
114 EXPECT_EQ(2, Tween::LinearIntValueBetween(3.0 / 4.0, 0, 2)); in TEST()
[all …]
Dtween.cc141 int Tween::LinearIntValueBetween(double value, int start, int target) { in LinearIntValueBetween() function in gfx::Tween
150 LinearIntValueBetween(value, start_bounds.x(), target_bounds.x()), in RectValueBetween()
151 LinearIntValueBetween(value, start_bounds.y(), target_bounds.y()), in RectValueBetween()
152 LinearIntValueBetween(value, start_bounds.width(), target_bounds.width()), in RectValueBetween()
153 LinearIntValueBetween( in RectValueBetween()
Dtween.h47 static int LinearIntValueBetween(double value, int start, int target);
/external/chromium_org/cc/output/
Dfilter_operation.cc202 gfx::Tween::LinearIntValueBetween(progress, in Blend()
205 gfx::Tween::LinearIntValueBetween(progress, in Blend()
213 std::max(gfx::Tween::LinearIntValueBetween( in Blend()