aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar epoger@google.com <epoger@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-05-17 17:36:59 +0000
committerGravatar epoger@google.com <epoger@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-05-17 17:36:59 +0000
commit2047f00e4698f83499ab91911999a65c21a951c9 (patch)
tree404b1c30d3f764fa05e3770c09fc1e43449a4d65 /src
parentd31cbc465088a253b5574b0305e09f9301b2bf81 (diff)
get tests closer to passing for SKIA_SCALAR=fixed
Diffstat (limited to 'src')
-rw-r--r--src/core/SkScan_Antihair.cpp6
-rw-r--r--src/pdf/SkPDFTypes.cpp2
2 files changed, 3 insertions, 5 deletions
diff --git a/src/core/SkScan_Antihair.cpp b/src/core/SkScan_Antihair.cpp
index b84c576c15..52f2a321aa 100644
--- a/src/core/SkScan_Antihair.cpp
+++ b/src/core/SkScan_Antihair.cpp
@@ -653,6 +653,8 @@ void SkScan::AntiFillRect(const SkRect& origR, const SkRegion* clip,
}
}
+#endif // SK_SCALAR_IS_FLOAT
+
///////////////////////////////////////////////////////////////////////////////
#define SkAlphaMulRound(a, b) SkMulDiv255Round(a, b)
@@ -811,7 +813,3 @@ void SkScan::AntiFrameRect(const SkRect& r, const SkPoint& strokeSize,
innerstrokedot8(L, T, R, B, blitter);
}
}
-
-#endif
-
-
diff --git a/src/pdf/SkPDFTypes.cpp b/src/pdf/SkPDFTypes.cpp
index cb1c178e22..b9420eba83 100644
--- a/src/pdf/SkPDFTypes.cpp
+++ b/src/pdf/SkPDFTypes.cpp
@@ -112,7 +112,7 @@ void SkPDFScalar::Append(SkScalar value, SkWStream* stream) {
#if defined(SK_SCALAR_IS_FIXED)
- stream->wrieScalarAsText(value);
+ stream->writeScalarAsText(value);
return;
#endif // SK_SCALAR_IS_FIXED