aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorGravatar reed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2010-02-11 11:09:39 +0000
committerGravatar reed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2010-02-11 11:09:39 +0000
commit60bc6d5cb0af7cef0e49cc35f28f36f89b10853e (patch)
treea019716911f2ad54194d2b3483867aaed74ccf66 /tests
parentf0ad0864af632736819b9f3f34dbba488c73e3af (diff)
add Make to SkTSize
git-svn-id: http://skia.googlecode.com/svn/trunk@497 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tests')
-rw-r--r--tests/PathTest.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/PathTest.cpp b/tests/PathTest.cpp
index 89fe93b963..9f26d01841 100644
--- a/tests/PathTest.cpp
+++ b/tests/PathTest.cpp
@@ -1,5 +1,6 @@
#include "Test.h"
#include "SkPath.h"
+#include "SkSize.h"
static void check_convex_bounds(skiatest::Reporter* reporter, const SkPath& p,
const SkRect& bounds) {
@@ -17,6 +18,16 @@ static void check_convex_bounds(skiatest::Reporter* reporter, const SkPath& p,
}
static void TestPath(skiatest::Reporter* reporter) {
+ {
+ SkSize size;
+ size.fWidth = 3.4f;
+ size.width();
+ size = SkSize::Make(3,4);
+ SkISize isize = SkISize::Make(3,4);
+ }
+
+ SkTSize<SkScalar>::Make(3,4);
+
SkPath p, p2;
SkRect bounds, bounds2;