Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(182)

Unified Diff: src/gpu/GrAADistanceFieldPathRenderer.cpp

Issue 1316123003: Style Change: SkNEW->new; SkDELETE->delete (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-08-26 (Wednesday) 15:59:00 EDT Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/GrAAConvexTessellator.cpp ('k') | src/gpu/GrAAHairLinePathRenderer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrAADistanceFieldPathRenderer.cpp
diff --git a/src/gpu/GrAADistanceFieldPathRenderer.cpp b/src/gpu/GrAADistanceFieldPathRenderer.cpp
old mode 100755
new mode 100644
index 905bde9eab09d68b65abe4040d66f9e1eb9ce54d..7a51149ed559d3adc7c8bab93e64d90e816d76dd
--- a/src/gpu/GrAADistanceFieldPathRenderer.cpp
+++ b/src/gpu/GrAADistanceFieldPathRenderer.cpp
@@ -53,7 +53,7 @@ void GrAADistanceFieldPathRenderer::HandleEviction(GrBatchAtlas::AtlasID id, voi
if (id == pathData->fID) {
dfpr->fPathCache.remove(pathData->fKey);
dfpr->fPathList.remove(pathData);
- SkDELETE(pathData);
+ delete pathData;
#ifdef DF_PATH_TRACKING
++g_NumFreedPaths;
#endif
@@ -71,9 +71,9 @@ GrAADistanceFieldPathRenderer::~GrAADistanceFieldPathRenderer() {
while ((pathData = iter.get())) {
iter.next();
fPathList.remove(pathData);
- SkDELETE(pathData);
+ delete pathData;
}
- SkDELETE(fAtlas);
+ delete fAtlas;
#ifdef DF_PATH_TRACKING
SkDebugf("Cached paths: %d, freed paths: %d\n", g_NumCachedPaths, g_NumFreedPaths);
@@ -125,8 +125,8 @@ public:
static GrDrawBatch* Create(const Geometry& geometry, GrColor color, const SkMatrix& viewMatrix,
GrBatchAtlas* atlas, PathCache* pathCache, PathDataList* pathList) {
- return SkNEW_ARGS(AADistanceFieldPathBatch, (geometry, color, viewMatrix,
- atlas, pathCache, pathList));
+ return new AADistanceFieldPathBatch(geometry, color, viewMatrix, atlas, pathCache,
+ pathList);
}
const char* name() const override { return "AADistanceFieldPathBatch"; }
@@ -231,10 +231,10 @@ private:
if (args.fPathData) {
fPathCache->remove(args.fPathData->fKey);
fPathList->remove(args.fPathData);
- SkDELETE(args.fPathData);
+ delete args.fPathData;
}
SkScalar scale = desiredDimension/maxDim;
- args.fPathData = SkNEW(PathData);
+ args.fPathData = new PathData;
if (!this->addPathToAtlas(target,
dfProcessor,
this->pipeline(),
@@ -568,9 +568,9 @@ struct PathTestStruct {
while ((pathData = iter.get())) {
iter.next();
fPathList.remove(pathData);
- SkDELETE(pathData);
+ delete pathData;
}
- SkDELETE(fAtlas);
+ delete fAtlas;
fPathCache.reset();
}
@@ -585,7 +585,7 @@ struct PathTestStruct {
if (id == pathData->fID) {
dfpr->fPathCache.remove(pathData->fKey);
dfpr->fPathList.remove(pathData);
- SkDELETE(pathData);
+ delete pathData;
}
}
}
« no previous file with comments | « src/gpu/GrAAConvexTessellator.cpp ('k') | src/gpu/GrAAHairLinePathRenderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698