Change static asserts of scalar type to runtime asserts (re r3040)
git-svn-id: http://skia.googlecode.com/svn/trunk@3041 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/gpu/GrPathUtils.cpp b/src/gpu/GrPathUtils.cpp
index e41de5c..6bb72a8 100644
--- a/src/gpu/GrPathUtils.cpp
+++ b/src/gpu/GrPathUtils.cpp
@@ -193,7 +193,7 @@
// However, the first two entries of the perspective row may be really close to
// 0 and the third may not be 1 due to a scale on the entire matrix.
inline void fixup_matrix(GrMatrix* mat) {
- GR_STATIC_ASSERT(SK_SCALAR_IS_FLOAT);
+ GrAssert(SK_SCALAR_IS_FLOAT);
static const GrScalar gTOL = 1.f / 100.f;
GrAssert(GrScalarAbs(mat->get(SkMatrix::kMPersp0)) < gTOL);
GrAssert(GrScalarAbs(mat->get(SkMatrix::kMPersp1)) < gTOL);
@@ -220,7 +220,7 @@
GrMatrix* matrix) {
// can't make this static, no cons :(
SkMatrix UVpts;
- GR_STATIC_ASSERT(SK_SCALAR_IS_FLOAT);
+ GrAssert(SK_SCALAR_IS_FLOAT);
UVpts.setAll(0, 0.5f, 1.f,
0, 0, 1.f,
1.f, 1.f, 1.f);