Switch GrTextTarget from drawPath to drawShape

Change-Id: I96b424c1c9369be4183eeb38729d49fff2ba87f4
Reviewed-on: https://skia-review.googlesource.com/148902
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
diff --git a/src/gpu/text/GrTextBlob.cpp b/src/gpu/text/GrTextBlob.cpp
index bba3328..7a1b3f7 100644
--- a/src/gpu/text/GrTextBlob.cpp
+++ b/src/gpu/text/GrTextBlob.cpp
@@ -9,6 +9,7 @@
 #include "GrBlurUtils.h"
 #include "GrClip.h"
 #include "GrContext.h"
+#include "GrShape.h"
 #include "GrStyle.h"
 #include "GrTextTarget.h"
 #include "SkColorFilter.h"
@@ -303,7 +304,6 @@
                 pathMatrix.postTranslate(pathGlyph.fX + transX, pathGlyph.fY + transY);
 
                 const SkPath* path = &pathGlyph.fPath;
-                bool pathIsMutable = false;
                 SkTLazy<SkPath> tmpPath;
 
                 GrStyle style(runPaint);
@@ -317,10 +317,12 @@
                     path->transform(pathMatrix, result);
                     result->setIsVolatile(true);
                     path = result;
-                    pathIsMutable = true;
                 }
 
-                target->drawPath(clip, *path, runPaint, *ctm, pathIsMutable);
+                // TODO: we are losing the mutability of the path here
+                GrShape shape(*path, paint);
+
+                target->drawShape(clip, runPaint, *ctm, shape);
             }
         }