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:
parent
4151341273
commit
b51c633c4f
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user