Remove deprecated usage of SkNEW and SkDELETE

Review URL: https://codereview.chromium.org/1311713003
This commit is contained in:
mdempsky 2015-08-26 15:27:59 -07:00 committed by Commit bot
parent 7b7ecfc046
commit a04c650459

View File

@ -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;
}