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

Unified Diff: src/gpu/effects/GrPorterDuffXferProcessor.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/GrOvalEffect.cpp ('k') | src/gpu/effects/GrRRectEffect.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/effects/GrPorterDuffXferProcessor.cpp
diff --git a/src/gpu/effects/GrPorterDuffXferProcessor.cpp b/src/gpu/effects/GrPorterDuffXferProcessor.cpp
index 0e1bc514698e214cdf5e1900f9c330609d0c9b42..4a86aab9c923b7b4e89515eb1434e487d77627b6 100644
--- a/src/gpu/effects/GrPorterDuffXferProcessor.cpp
+++ b/src/gpu/effects/GrPorterDuffXferProcessor.cpp
@@ -420,7 +420,7 @@ void PorterDuffXferProcessor::onGetGLProcessorKey(const GrGLSLCaps&,
}
GrGLXferProcessor* PorterDuffXferProcessor::createGLInstance() const {
- return SkNEW(GLPorterDuffXferProcessor);
+ return new GLPorterDuffXferProcessor;
}
GrXferProcessor::OptFlags
@@ -518,7 +518,7 @@ void ShaderPDXferProcessor::onGetGLProcessorKey(const GrGLSLCaps&,
}
GrGLXferProcessor* ShaderPDXferProcessor::createGLInstance() const {
- return SkNEW(GLShaderPDXferProcessor);
+ return new GLShaderPDXferProcessor;
}
///////////////////////////////////////////////////////////////////////////////
@@ -611,7 +611,7 @@ GrXferProcessor* PDLCDXferProcessor::Create(SkXfermode::Mode xfermode,
uint8_t alpha = GrColorUnpackA(blendConstant);
blendConstant |= (0xff << GrColor_SHIFT_A);
- return SkNEW_ARGS(PDLCDXferProcessor, (blendConstant, alpha));
+ return new PDLCDXferProcessor(blendConstant, alpha);
}
PDLCDXferProcessor::~PDLCDXferProcessor() {
@@ -623,7 +623,7 @@ void PDLCDXferProcessor::onGetGLProcessorKey(const GrGLSLCaps& caps,
}
GrGLXferProcessor* PDLCDXferProcessor::createGLInstance() const {
- return SkNEW_ARGS(GLPDLCDXferProcessor, (*this));
+ return new GLPDLCDXferProcessor(*this);
}
GrXferProcessor::OptFlags
@@ -691,11 +691,11 @@ GrPorterDuffXPFactory::onCreateXferProcessor(const GrCaps& caps,
BlendFormula blendFormula = get_blend_formula(colorPOI, covPOI, hasMixedSamples, fXfermode);
if (blendFormula.hasSecondaryOutput() && !caps.shaderCaps()->dualSourceBlendingSupport()) {
- return SkNEW_ARGS(ShaderPDXferProcessor, (dstTexture, hasMixedSamples, fXfermode));
+ return new ShaderPDXferProcessor(dstTexture, hasMixedSamples, fXfermode);
}
SkASSERT(!dstTexture || !dstTexture->texture());
- return SkNEW_ARGS(PorterDuffXferProcessor, (blendFormula));
+ return new PorterDuffXferProcessor(blendFormula);
}
bool GrPorterDuffXPFactory::supportsRGBCoverage(GrColor /*knownColor*/,
« no previous file with comments | « src/gpu/effects/GrOvalEffect.cpp ('k') | src/gpu/effects/GrRRectEffect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698