Remove deprecated usage of SkNEW and SkDELETE
Review URL: https://codereview.chromium.org/1311713003
This commit is contained in:
parent
7b7ecfc046
commit
a04c650459
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user