aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar mdempsky <mdempsky@chromium.org>2015-08-26 15:27:59 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-08-26 15:27:59 -0700
commita04c650459280363454da3b43ae910b8593434c8 (patch)
treee24d68690fc3407933b0362b358668e9d81e5763
parent7b7ecfc046f7ec810482266db3430d1358b7a5bf (diff)
Remove deprecated usage of SkNEW and SkDELETE
-rw-r--r--src/gpu/gl/iOS/SkCreatePlatformGLContext_iOS.mm5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gpu/gl/iOS/SkCreatePlatformGLContext_iOS.mm b/src/gpu/gl/iOS/SkCreatePlatformGLContext_iOS.mm
index 08e6f239ee..b90948af44 100644
--- a/src/gpu/gl/iOS/SkCreatePlatformGLContext_iOS.mm
+++ b/src/gpu/gl/iOS/SkCreatePlatformGLContext_iOS.mm
@@ -93,11 +93,10 @@ SkGLContext* SkCreatePlatformGLContext(GrGLStandard forcedGpuAPI) {
if (kGL_GrGLStandard == forcedGpuAPI) {
return NULL;
}
- IOSGLContext* ctx = SkNEW(IOSGLContext);
+ IOSGLContext* ctx = new IOSGLContext;
if (!ctx->isValid()) {
- SkDELETE(ctx);
+ delete ctx;
return NULL;
}
return ctx;
}
-