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

Unified Diff: src/gpu/effects/GrOvalEffect.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/effects/GrMatrixConvolutionEffect.cpp ('k') | src/gpu/effects/GrPorterDuffXferProcessor.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/effects/GrOvalEffect.cpp
diff --git a/src/gpu/effects/GrOvalEffect.cpp b/src/gpu/effects/GrOvalEffect.cpp
index 3fb7b9029d4a05b3923f66bdeac627cfdbc8235c..dec6ae2bada34cd9967d0ae0b2848612ae6baaa6 100644
--- a/src/gpu/effects/GrOvalEffect.cpp
+++ b/src/gpu/effects/GrOvalEffect.cpp
@@ -51,7 +51,7 @@ private:
GrFragmentProcessor* CircleEffect::Create(GrPrimitiveEdgeType edgeType, const SkPoint& center,
SkScalar radius) {
SkASSERT(radius >= 0);
- return SkNEW_ARGS(CircleEffect, (edgeType, center, radius));
+ return new CircleEffect(edgeType, center, radius);
}
void CircleEffect::onComputeInvariantOutput(GrInvariantOutput* inout) const {
@@ -177,7 +177,7 @@ void CircleEffect::onGetGLProcessorKey(const GrGLSLCaps& caps,
}
GrGLFragmentProcessor* CircleEffect::onCreateGLInstance() const {
- return SkNEW_ARGS(GLCircleEffect, (*this));
+ return new GLCircleEffect(*this);
}
//////////////////////////////////////////////////////////////////////////////
@@ -221,7 +221,7 @@ GrFragmentProcessor* EllipseEffect::Create(GrPrimitiveEdgeType edgeType,
SkScalar rx,
SkScalar ry) {
SkASSERT(rx >= 0 && ry >= 0);
- return SkNEW_ARGS(EllipseEffect, (edgeType, center, rx, ry));
+ return new EllipseEffect(edgeType, center, rx, ry);
}
void EllipseEffect::onComputeInvariantOutput(GrInvariantOutput* inout) const {
@@ -353,7 +353,7 @@ void EllipseEffect::onGetGLProcessorKey(const GrGLSLCaps& caps,
}
GrGLFragmentProcessor* EllipseEffect::onCreateGLInstance() const {
- return SkNEW_ARGS(GLEllipseEffect, (*this));
+ return new GLEllipseEffect(*this);
}
//////////////////////////////////////////////////////////////////////////////
« no previous file with comments | « src/gpu/effects/GrMatrixConvolutionEffect.cpp ('k') | src/gpu/effects/GrPorterDuffXferProcessor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698