diff options
author | 2011-10-27 16:58:46 +0000 | |
---|---|---|
committer | 2011-10-27 16:58:46 +0000 | |
commit | c90419199525141a5b98091f856e359bf9daf5b1 (patch) | |
tree | 42400cdc0ccebad3de093b6312ace430fde9e31c /tests/AAClipTest.cpp | |
parent | 83a444602ec580a0040713eed588c245b4ae0ee9 (diff) |
now we trim the aaclip after building it, to ensure that it has tight bounds
around its (rle compressed) image.
git-svn-id: http://skia.googlecode.com/svn/trunk@2542 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tests/AAClipTest.cpp')
-rw-r--r-- | tests/AAClipTest.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/tests/AAClipTest.cpp b/tests/AAClipTest.cpp index 1d6aecae10..f56645e006 100644 --- a/tests/AAClipTest.cpp +++ b/tests/AAClipTest.cpp @@ -11,19 +11,16 @@ #include "SkRandom.h" static const SkRegion::Op gRgnOps[] = { -// SkRegion::kDifference_Op, + SkRegion::kDifference_Op, SkRegion::kIntersect_Op, SkRegion::kUnion_Op, SkRegion::kXOR_Op, -// SkRegion::kReverseDifference_Op, + SkRegion::kReverseDifference_Op, SkRegion::kReplace_Op }; static const char* gRgnOpNames[] = { -// "DIFF", - "SECT", "UNION", "XOR", -// "RDIFF", - "REPLACE" + "DIFF", "INTERSECT", "UNION", "XOR", "REVERSE_DIFF", "REPLACE" }; static void imoveTo(SkPath& path, int x, int y) { @@ -104,7 +101,7 @@ static void rand_irect(SkIRect* r, int N, SkRandom& rand) { static void test_irect(skiatest::Reporter* reporter) { SkRandom rand; - for (int i = 0; i < 100; i++) { + for (int i = 0; i < 10000; i++) { SkAAClip clip0, clip1; SkRegion rgn0, rgn1; SkIRect r0, r1; |