aboutsummaryrefslogtreecommitdiffstats
path: root/tests/PaintTest.cpp
diff options
context:
space:
mode:
authorDerek Sollenberger <djsollen@google.com>2011-03-14 11:20:24 -0400
committerDerek Sollenberger <djsollen@google.com>2011-03-14 16:33:36 -0400
commit05b6b4d746867a9fb02e14edfe1bf3685abeb813 (patch)
tree34b121f598d1693c014df48ee70bffa382b0cc23 /tests/PaintTest.cpp
parent6210a7c68844602ee390bcce61dbb637910a3c6b (diff)
downloadexternal_skia-05b6b4d746867a9fb02e14edfe1bf3685abeb813.zip
external_skia-05b6b4d746867a9fb02e14edfe1bf3685abeb813.tar.gz
external_skia-05b6b4d746867a9fb02e14edfe1bf3685abeb813.tar.bz2
Skia Merge (revision 922)
Change-Id: I7ed57d10905d8bad6486a4d7410165eec1cc2b4f
Diffstat (limited to 'tests/PaintTest.cpp')
-rw-r--r--tests/PaintTest.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/tests/PaintTest.cpp b/tests/PaintTest.cpp
index 4e6c8b9..5b19090 100644
--- a/tests/PaintTest.cpp
+++ b/tests/PaintTest.cpp
@@ -8,10 +8,14 @@ static void regression_cubic(skiatest::Reporter* reporter) {
SkPath path, stroke;
SkPaint paint;
- path.moveTo(460.2881309415525, 303.250847066498);
- path.cubicTo(463.36378422175284, 302.1169735073363,
- 456.32239330810046, 304.720354932878,
- 453.15255460013304, 305.788586869862);
+ path.moveTo(SkFloatToFixed(460.2881309415525f),
+ SkFloatToFixed(303.250847066498));
+ path.cubicTo(SkFloatToFixed(463.36378422175284),
+ SkFloatToFixed(302.1169735073363),
+ SkFloatToFixed(456.32239330810046),
+ SkFloatToFixed(304.720354932878),
+ SkFloatToFixed(453.15255460013304),
+ SkFloatToFixed(305.788586869862));
SkRect fillR, strokeR;
fillR = path.getBounds();