Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(331)

Side by Side Diff: src/gpu/gl/iOS/SkCreatePlatformGLContext_iOS.mm

Issue 1311713003: Remove deprecated usage of SkNEW and SkDELETE (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2012 Google Inc. 3 * Copyright 2012 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 #include "gl/SkGLContext.h" 9 #include "gl/SkGLContext.h"
10 #import <OpenGLES/EAGL.h> 10 #import <OpenGLES/EAGL.h>
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 GrGLFuncPtr IOSGLContext::onPlatformGetProcAddress(const char* procName) const { 86 GrGLFuncPtr IOSGLContext::onPlatformGetProcAddress(const char* procName) const {
87 return reinterpret_cast<GrGLFuncPtr>(dlsym(fGLLibrary, procName)); 87 return reinterpret_cast<GrGLFuncPtr>(dlsym(fGLLibrary, procName));
88 } 88 }
89 89
90 } // anonymous namespace 90 } // anonymous namespace
91 91
92 SkGLContext* SkCreatePlatformGLContext(GrGLStandard forcedGpuAPI) { 92 SkGLContext* SkCreatePlatformGLContext(GrGLStandard forcedGpuAPI) {
93 if (kGL_GrGLStandard == forcedGpuAPI) { 93 if (kGL_GrGLStandard == forcedGpuAPI) {
94 return NULL; 94 return NULL;
95 } 95 }
96 IOSGLContext* ctx = SkNEW(IOSGLContext); 96 IOSGLContext* ctx = new IOSGLContext;
97 if (!ctx->isValid()) { 97 if (!ctx->isValid()) {
98 SkDELETE(ctx); 98 delete ctx;
99 return NULL; 99 return NULL;
100 } 100 }
101 return ctx; 101 return ctx;
102 } 102 }
103
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698