| Index: src/utils/SkPatchUtils.cpp
|
| diff --git a/src/utils/SkPatchUtils.cpp b/src/utils/SkPatchUtils.cpp
|
| index 08fd4389d3e4636a3fee37bd02083a0c51f7dd41..e9ff906dd24f13a4965042f28235de0ea9ee9b3c 100644
|
| --- a/src/utils/SkPatchUtils.cpp
|
| +++ b/src/utils/SkPatchUtils.cpp
|
| @@ -217,10 +217,10 @@ bool SkPatchUtils::getVertexData(SkPatchUtils::VertexData* data, const SkPoint c
|
| data->fVertexCount = (lodX + 1) * (lodY + 1);
|
| }
|
| data->fIndexCount = lodX * lodY * 6;
|
| -
|
| - data->fPoints = SkNEW_ARRAY(SkPoint, data->fVertexCount);
|
| - data->fIndices = SkNEW_ARRAY(uint16_t, data->fIndexCount);
|
| -
|
| +
|
| + data->fPoints = new SkPoint[data->fVertexCount];
|
| + data->fIndices = new uint16_t[data->fIndexCount];
|
| +
|
| // if colors is not null then create array for colors
|
| SkPMColor colorsPM[kNumCorners];
|
| if (colors) {
|
| @@ -228,12 +228,12 @@ bool SkPatchUtils::getVertexData(SkPatchUtils::VertexData* data, const SkPoint c
|
| for (int i = 0; i < kNumCorners; i++) {
|
| colorsPM[i] = SkPreMultiplyColor(colors[i]);
|
| }
|
| - data->fColors = SkNEW_ARRAY(uint32_t, data->fVertexCount);
|
| + data->fColors = new uint32_t[data->fVertexCount];
|
| }
|
|
|
| // if texture coordinates are not null then create array for them
|
| if (texCoords) {
|
| - data->fTexCoords = SkNEW_ARRAY(SkPoint, data->fVertexCount);
|
| + data->fTexCoords = new SkPoint[data->fVertexCount];
|
| }
|
|
|
| SkPoint pts[kNumPtsCubic];
|
|
|