aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/MathTest.cpp
diff options
context:
space:
mode:
authorGravatar reed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2009-11-16 14:52:01 +0000
committerGravatar reed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2009-11-16 14:52:01 +0000
commite72fee513a5f903d6aa17066d2f3b79ac31f05de (patch)
tree486b749a7e46e13cc5f087b75b7d073b05fd5bdf /tests/MathTest.cpp
parentf0f4e9abba62a405b7a41e40fcee20b45eb348ee (diff)
add onSendClickToChildren to views, so a view can capture all clicks.
speedup some of the unittests that were too slow minor cleanup in SkScan_Path, in prep for larger changes git-svn-id: http://skia.googlecode.com/svn/trunk@426 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tests/MathTest.cpp')
-rw-r--r--tests/MathTest.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/MathTest.cpp b/tests/MathTest.cpp
index dddd2da310..09e3748860 100644
--- a/tests/MathTest.cpp
+++ b/tests/MathTest.cpp
@@ -235,7 +235,7 @@ static void TestMath(skiatest::Reporter* reporter) {
REPORTER_ASSERT(reporter, clamp == clamp2);
}
- for (i = 0; i < 100000; i++) {
+ for (i = 0; i < 10000; i++) {
SkPoint p;
p.setLength(rand.nextS(), rand.nextS(), SK_Scalar1);
@@ -256,7 +256,7 @@ static void TestMath(skiatest::Reporter* reporter) {
#endif
#ifdef SkLONGLONG
- for (i = 0; i < 100000; i++) {
+ for (i = 0; i < 10000; i++) {
SkFixed numer = rand.nextS();
SkFixed denom = rand.nextS();
SkFixed result = SkFixedDiv(numer, denom);
@@ -321,7 +321,7 @@ static void TestMath(skiatest::Reporter* reporter) {
#endif
#ifdef SK_CAN_USE_FLOAT
- for (i = 0; i < 100000; i++) {
+ for (i = 0; i < 10000; i++) {
SkFract x = rand.nextU() >> 1;
double xx = (double)x / SK_Fract1;
SkFract xr = SkFractSqrt(x);
@@ -351,7 +351,7 @@ static void TestMath(skiatest::Reporter* reporter) {
}
int maxDiff = 0;
- for (i = 0; i < 10000; i++) {
+ for (i = 0; i < 1000; i++) {
SkFixed rads = rand.nextS() >> 10;
double frads = SkFixedToFloat(rads);