Fix SkShadowTessellator.cpp for Chrome iOS build
authorJim Van Verth <jvanverth@google.com>
Mon, 30 Jan 2017 19:49:21 +0000 (14:49 -0500)
committerHal Canary <halcanary@google.com>
Mon, 30 Jan 2017 20:18:08 +0000 (20:18 +0000)
BUG=skia:6119

Change-Id: I6ddd51c2ebc04e5f8ae29459dc818f0d96ace073
Reviewed-on: https://skia-review.googlesource.com/7758
Commit-Queue: Jim Van Verth <jvanverth@google.com>
Reviewed-by: Jim Van Verth <jvanverth@google.com>
Reviewed-by: Hal Canary <halcanary@google.com>
src/utils/SkShadowTessellator.cpp

index 5ad5e4f..ca8927b 100755 (executable)
@@ -6,9 +6,12 @@
  */
 
 #include "SkShadowTessellator.h"
-#include "GrPathUtils.h"
-
 #include "SkGeometry.h"
+#include "SkPath.h"
+
+#if SK_SUPPORT_GPU
+#include "GrPathUtils.h"
+#endif
 
 static bool compute_normal(const SkPoint& p0, const SkPoint& p1, SkScalar radius, SkScalar dir,
                            SkVector* newNormal) {