| Index: src/gpu/gl/egl/SkCreatePlatformGLContext_egl.cpp
|
| diff --git a/src/gpu/gl/egl/SkCreatePlatformGLContext_egl.cpp b/src/gpu/gl/egl/SkCreatePlatformGLContext_egl.cpp
|
| index 9ed57a37a3c773f30cefe3a9085af5faf09cfc9e..9bdedf7ef024ad6167174b1cb71b248490c7a22c 100644
|
| --- a/src/gpu/gl/egl/SkCreatePlatformGLContext_egl.cpp
|
| +++ b/src/gpu/gl/egl/SkCreatePlatformGLContext_egl.cpp
|
| @@ -236,7 +236,7 @@ SkEGLFenceSync* SkEGLFenceSync::CreateIfSupported(EGLDisplay display) {
|
| if (!display || !supports_egl_extension(display, "EGL_KHR_fence_sync")) {
|
| return NULL;
|
| }
|
| - return SkNEW_ARGS(SkEGLFenceSync, (display));
|
| + return new SkEGLFenceSync(display);
|
| }
|
|
|
| SkPlatformGpuFence SkEGLFenceSync::insertFence() const {
|
| @@ -259,9 +259,9 @@ void SkEGLFenceSync::deleteFence(SkPlatformGpuFence platformFence) const {
|
| } // anonymous namespace
|
|
|
| SkGLContext* SkCreatePlatformGLContext(GrGLStandard forcedGpuAPI) {
|
| - EGLGLContext* ctx = SkNEW_ARGS(EGLGLContext, (forcedGpuAPI));
|
| + EGLGLContext* ctx = new EGLGLContext(forcedGpuAPI);
|
| if (!ctx->isValid()) {
|
| - SkDELETE(ctx);
|
| + delete ctx;
|
| return NULL;
|
| }
|
| return ctx;
|
|
|