Fix Fixed-Point build by changing static_assert around scalar=float to a runtime crash.

git-svn-id: http://skia.googlecode.com/svn/trunk@4222 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
bsalomon@google.com 2012-06-11 15:46:05 +00:00
parent 4151341273
commit b51c633c4f

View File

@ -57,7 +57,9 @@ GrGLPath::GrGLPath(GrGpuGL* gpu, const SkPath& path) : INHERITED(gpu) {
SkPath::Iter iter(path, true); SkPath::Iter iter(path, true);
SkSTArray<16, GrGLubyte, true> pathCommands; SkSTArray<16, GrGLubyte, true> pathCommands;
GR_STATIC_ASSERT(SK_SCALAR_IS_FLOAT); // assuming SkPoint is floats #ifndef SK_SCALAR_IS_FLOAT
GrCrash("Expected scalar is float.");
#endif
SkSTArray<16, SkPoint, true> pathPoints; SkSTArray<16, SkPoint, true> pathPoints;
int verbCnt = path.countVerbs(); int verbCnt = path.countVerbs();