Remove GrAuto*Malloc, replace with SkAuto*Malloc
Review URL: http://codereview.appspot.com/4629088
git-svn-id: http://skia.googlecode.com/svn/trunk@1774 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/gpu/src/GrTesselatedPathRenderer.cpp b/gpu/src/GrTesselatedPathRenderer.cpp
index c1d5ac0..5ddba99 100644
--- a/gpu/src/GrTesselatedPathRenderer.cpp
+++ b/gpu/src/GrTesselatedPathRenderer.cpp
@@ -16,11 +16,12 @@
#include "GrTesselatedPathRenderer.h"
-#include "GrMemory.h"
#include "GrPathUtils.h"
#include "GrPoint.h"
#include "GrTDArray.h"
+#include "SkTemplates.h"
+
#include <limits.h>
#include <sk_glu.h>
@@ -393,12 +394,12 @@
if (maxPts > USHRT_MAX) {
return;
}
- GrAutoSTMalloc<8, GrPoint> baseMem(maxPts);
- GrPoint* base = (GrPoint*) baseMem;
+ SkAutoSTMalloc<8, GrPoint> baseMem(maxPts);
+ GrPoint* base = baseMem;
GrPoint* vert = base;
GrPoint* subpathBase = base;
- GrAutoSTMalloc<8, uint16_t> subpathVertCount(subpathCnt);
+ SkAutoSTMalloc<8, uint16_t> subpathVertCount(subpathCnt);
GrPoint pts[4];
SkPath::Iter iter(path, false);