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

Unified Diff: src/gpu/effects/GrDashingEffect.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/GrCustomXfermode.cpp ('k') | src/gpu/effects/GrDisableColorXP.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/effects/GrDashingEffect.cpp
diff --git a/src/gpu/effects/GrDashingEffect.cpp b/src/gpu/effects/GrDashingEffect.cpp
index 5fb45a3aabf9316fc82f09ee846cb83abe66d784..89fa423deb24e134eed154f82861a3f7ceaea4b0 100644
--- a/src/gpu/effects/GrDashingEffect.cpp
+++ b/src/gpu/effects/GrDashingEffect.cpp
@@ -259,7 +259,7 @@ public:
static GrDrawBatch* Create(const Geometry& geometry, SkPaint::Cap cap, DashAAMode aaMode,
bool fullDash) {
- return SkNEW_ARGS(DashBatch, (geometry, cap, aaMode, fullDash));
+ return new DashBatch(geometry, cap, aaMode, fullDash);
}
const char* name() const override { return "DashBatch"; }
@@ -929,7 +929,7 @@ GrGeometryProcessor* DashingCircleEffect::Create(GrColor color,
DashAAMode aaMode,
const SkMatrix& localMatrix,
bool usesLocalCoords) {
- return SkNEW_ARGS(DashingCircleEffect, (color, aaMode, localMatrix, usesLocalCoords));
+ return new DashingCircleEffect(color, aaMode, localMatrix, usesLocalCoords);
}
void DashingCircleEffect::getGLProcessorKey(const GrBatchTracker& bt,
@@ -940,7 +940,7 @@ void DashingCircleEffect::getGLProcessorKey(const GrBatchTracker& bt,
GrGLPrimitiveProcessor* DashingCircleEffect::createGLInstance(const GrBatchTracker& bt,
const GrGLSLCaps&) const {
- return SkNEW_ARGS(GLDashingCircleEffect, (*this, bt));
+ return new GLDashingCircleEffect(*this, bt);
}
DashingCircleEffect::DashingCircleEffect(GrColor color,
@@ -1165,7 +1165,7 @@ GrGeometryProcessor* DashingLineEffect::Create(GrColor color,
DashAAMode aaMode,
const SkMatrix& localMatrix,
bool usesLocalCoords) {
- return SkNEW_ARGS(DashingLineEffect, (color, aaMode, localMatrix, usesLocalCoords));
+ return new DashingLineEffect(color, aaMode, localMatrix, usesLocalCoords);
}
void DashingLineEffect::getGLProcessorKey(const GrBatchTracker& bt,
@@ -1176,7 +1176,7 @@ void DashingLineEffect::getGLProcessorKey(const GrBatchTracker& bt,
GrGLPrimitiveProcessor* DashingLineEffect::createGLInstance(const GrBatchTracker& bt,
const GrGLSLCaps&) const {
- return SkNEW_ARGS(GLDashingLineEffect, (*this, bt));
+ return new GLDashingLineEffect(*this, bt);
}
DashingLineEffect::DashingLineEffect(GrColor color,
« no previous file with comments | « src/gpu/effects/GrCustomXfermode.cpp ('k') | src/gpu/effects/GrDisableColorXP.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698