diff options
author | mdempsky <mdempsky@chromium.org> | 2015-08-26 15:27:59 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-08-26 15:27:59 -0700 |
commit | a04c650459280363454da3b43ae910b8593434c8 (patch) | |
tree | e24d68690fc3407933b0362b358668e9d81e5763 | |
parent | 7b7ecfc046f7ec810482266db3430d1358b7a5bf (diff) |
Remove deprecated usage of SkNEW and SkDELETE
Review URL: https://codereview.chromium.org/1311713003
-rw-r--r-- | src/gpu/gl/iOS/SkCreatePlatformGLContext_iOS.mm | 5 |
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; } - |