// 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);
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);