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

Unified Diff: src/image/SkSurface_Gpu.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/image/SkImage_Raster.cpp ('k') | src/image/SkSurface_Raster.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/image/SkSurface_Gpu.cpp
diff --git a/src/image/SkSurface_Gpu.cpp b/src/image/SkSurface_Gpu.cpp
index f0719d895a03b1e9a675b2820094a81e7af6178d..34671f72fc746ee236ed1c95682e7178bc76c14c 100644
--- a/src/image/SkSurface_Gpu.cpp
+++ b/src/image/SkSurface_Gpu.cpp
@@ -66,7 +66,7 @@ SkCanvas* SkSurface_Gpu::onNewCanvas() {
// When we think this works...
// flags |= SkCanvas::kConservativeRasterClip_InitFlag;
- return SkNEW_ARGS(SkCanvas, (fDevice, flags));
+ return new SkCanvas(fDevice, flags);
}
SkSurface* SkSurface_Gpu::onNewSurface(const SkImageInfo& info) {
@@ -84,9 +84,8 @@ SkImage* SkSurface_Gpu::onNewImageSnapshot(Budgeted budgeted) {
SkImage* image = NULL;
GrTexture* tex = fDevice->accessRenderTarget()->asTexture();
if (tex) {
- image = SkNEW_ARGS(SkImage_Gpu,
- (info.width(), info.height(), kNeedNewImageUniqueID, info.alphaType(),
- tex, sampleCount, budgeted));
+ image = new SkImage_Gpu(info.width(), info.height(), kNeedNewImageUniqueID,
+ info.alphaType(), tex, sampleCount, budgeted);
}
if (image) {
as_IB(image)->initWithProps(this->props());
@@ -123,7 +122,7 @@ SkSurface* SkSurface::NewRenderTargetDirect(GrRenderTarget* target, const SkSurf
if (!device) {
return NULL;
}
- return SkNEW_ARGS(SkSurface_Gpu, (device));
+ return new SkSurface_Gpu(device);
}
SkSurface* SkSurface::NewRenderTarget(GrContext* ctx, Budgeted budgeted, const SkImageInfo& info,
@@ -133,7 +132,7 @@ SkSurface* SkSurface::NewRenderTarget(GrContext* ctx, Budgeted budgeted, const S
if (!device) {
return NULL;
}
- return SkNEW_ARGS(SkSurface_Gpu, (device));
+ return new SkSurface_Gpu(device);
}
SkSurface* SkSurface::NewFromBackendTexture(GrContext* context, const GrBackendTextureDesc& desc,
@@ -154,7 +153,7 @@ SkSurface* SkSurface::NewFromBackendTexture(GrContext* context, const GrBackendT
if (!device) {
return NULL;
}
- return SkNEW_ARGS(SkSurface_Gpu, (device));
+ return new SkSurface_Gpu(device);
}
SkSurface* SkSurface::NewFromBackendRenderTarget(GrContext* context,
@@ -172,7 +171,7 @@ SkSurface* SkSurface::NewFromBackendRenderTarget(GrContext* context,
if (!device) {
return NULL;
}
- return SkNEW_ARGS(SkSurface_Gpu, (device));
+ return new SkSurface_Gpu(device);
}
#endif
« no previous file with comments | « src/image/SkImage_Raster.cpp ('k') | src/image/SkSurface_Raster.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698