Index: src/gpu/batches/GrDrawPathBatch.cpp |
diff --git a/src/gpu/batches/GrDrawPathBatch.cpp b/src/gpu/batches/GrDrawPathBatch.cpp |
index 3264c0fbafe49f84a56dfc8d6fdb89082c6d11a6..ff62539932261568f20e19a3140b9655e1d817d0 100644 |
--- a/src/gpu/batches/GrDrawPathBatch.cpp |
+++ b/src/gpu/batches/GrDrawPathBatch.cpp |
@@ -139,7 +139,7 @@ void GrDrawPathRangeBatch::onDraw(GrBatchFlushState* state) { |
int floatsPerTransform = GrPathRendering::PathTransformSize(this->transformType()); |
#if defined(GOOGLE3) |
//Stack frame size is limited in GOOGLE3. |
- SkAutoSTMalloc<512, float> transformStorage(transformSize * fTotalPathCount); |
+ SkAutoSTMalloc<512, float> transformStorage(floatsPerTransform * fTotalPathCount); |
SkAutoSTMalloc<256, uint16_t> indexStorage(fTotalPathCount); |
#else |
SkAutoSTMalloc<4096, float> transformStorage(floatsPerTransform * fTotalPathCount); |