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

Unified Diff: src/gpu/GrOvalRenderer.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/GrNonAtomicRef.h ('k') | src/gpu/GrPaint.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrOvalRenderer.cpp
diff --git a/src/gpu/GrOvalRenderer.cpp b/src/gpu/GrOvalRenderer.cpp
index 2ad7e72067d1a32d2eb6834c496dd8eaf03a93fb..829f0ed6667daa269272bb5ca5225727fa9986ad 100644
--- a/src/gpu/GrOvalRenderer.cpp
+++ b/src/gpu/GrOvalRenderer.cpp
@@ -72,7 +72,7 @@ class CircleEdgeEffect : public GrGeometryProcessor {
public:
static GrGeometryProcessor* Create(GrColor color, bool stroke, const SkMatrix& localMatrix,
bool usesLocalCoords) {
- return SkNEW_ARGS(CircleEdgeEffect, (color, stroke, localMatrix, usesLocalCoords));
+ return new CircleEdgeEffect(color, stroke, localMatrix, usesLocalCoords);
}
const Attribute* inPosition() const { return fInPosition; }
@@ -173,7 +173,7 @@ public:
virtual GrGLPrimitiveProcessor* createGLInstance(const GrBatchTracker& bt,
const GrGLSLCaps&) const override {
- return SkNEW_ARGS(GLProcessor, (*this, bt));
+ return new GLProcessor(*this, bt);
}
private:
@@ -224,7 +224,7 @@ class EllipseEdgeEffect : public GrGeometryProcessor {
public:
static GrGeometryProcessor* Create(GrColor color, bool stroke, const SkMatrix& localMatrix,
bool usesLocalCoords) {
- return SkNEW_ARGS(EllipseEdgeEffect, (color, stroke, localMatrix, usesLocalCoords));
+ return new EllipseEdgeEffect(color, stroke, localMatrix, usesLocalCoords);
}
virtual ~EllipseEdgeEffect() {}
@@ -349,7 +349,7 @@ public:
virtual GrGLPrimitiveProcessor* createGLInstance(const GrBatchTracker& bt,
const GrGLSLCaps&) const override {
- return SkNEW_ARGS(GLProcessor, (*this, bt));
+ return new GLProcessor(*this, bt);
}
private:
@@ -406,7 +406,7 @@ public:
static GrGeometryProcessor* Create(GrColor color, const SkMatrix& viewMatrix, Mode mode,
bool usesLocalCoords) {
- return SkNEW_ARGS(DIEllipseEdgeEffect, (color, viewMatrix, mode, usesLocalCoords));
+ return new DIEllipseEdgeEffect(color, viewMatrix, mode, usesLocalCoords);
}
virtual ~DIEllipseEdgeEffect() {}
@@ -549,7 +549,7 @@ public:
virtual GrGLPrimitiveProcessor* createGLInstance(const GrBatchTracker& bt,
const GrGLSLCaps&) const override {
- return SkNEW_ARGS(GLProcessor, (*this, bt));
+ return new GLProcessor(*this, bt);
}
private:
@@ -636,9 +636,7 @@ public:
SkRect fDevBounds;
};
- static GrDrawBatch* Create(const Geometry& geometry) {
- return SkNEW_ARGS(CircleBatch, (geometry));
- }
+ static GrDrawBatch* Create(const Geometry& geometry) { return new CircleBatch(geometry); }
const char* name() const override { return "CircleBatch"; }
@@ -855,9 +853,7 @@ public:
SkRect fDevBounds;
};
- static GrDrawBatch* Create(const Geometry& geometry) {
- return SkNEW_ARGS(EllipseBatch, (geometry));
- }
+ static GrDrawBatch* Create(const Geometry& geometry) { return new EllipseBatch(geometry); }
const char* name() const override { return "EllipseBatch"; }
@@ -1124,7 +1120,7 @@ public:
};
static GrDrawBatch* Create(const Geometry& geometry, const SkRect& bounds) {
- return SkNEW_ARGS(DIEllipseBatch, (geometry, bounds));
+ return new DIEllipseBatch(geometry, bounds);
}
const char* name() const override { return "DIEllipseBatch"; }
@@ -1476,7 +1472,7 @@ public:
};
static GrDrawBatch* Create(const Geometry& geometry) {
- return SkNEW_ARGS(RRectCircleRendererBatch, (geometry));
+ return new RRectCircleRendererBatch(geometry);
}
const char* name() const override { return "RRectCircleBatch"; }
@@ -1652,7 +1648,7 @@ public:
};
static GrDrawBatch* Create(const Geometry& geometry) {
- return SkNEW_ARGS(RRectEllipseRendererBatch, (geometry));
+ return new RRectEllipseRendererBatch(geometry);
}
const char* name() const override { return "RRectEllipseRendererBatch"; }
« no previous file with comments | « src/gpu/GrNonAtomicRef.h ('k') | src/gpu/GrPaint.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698