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

Side by Side Diff: src/gpu/gl/GrGLContext.cpp

Issue 1316123003: Style Change: SkNEW->new; SkDELETE->delete (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-08-26 (Wednesday) 15:59:00 EDT 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 | « src/gpu/gl/GrGLCaps.cpp ('k') | src/gpu/gl/GrGLCreateNullInterface.cpp » ('j') | 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 * Copyright 2013 Google Inc. 2 * Copyright 2013 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #include "GrGLContext.h" 8 #include "GrGLContext.h"
9 #include "GrGLGLSL.h" 9 #include "GrGLGLSL.h"
10 10
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 */ 53 */
54 if (kAdreno3xx_GrGLRenderer == args.fRenderer) { 54 if (kAdreno3xx_GrGLRenderer == args.fRenderer) {
55 args.fGLSLGeneration = k110_GrGLSLGeneration; 55 args.fGLSLGeneration = k110_GrGLSLGeneration;
56 } 56 }
57 57
58 GrGLGetDriverInfo(interface->fStandard, args.fVendor, renderer, ver, 58 GrGLGetDriverInfo(interface->fStandard, args.fVendor, renderer, ver,
59 &args.fDriver, &args.fDriverVersion); 59 &args.fDriver, &args.fDriverVersion);
60 60
61 args.fContextOptions = &options; 61 args.fContextOptions = &options;
62 62
63 return SkNEW_ARGS(GrGLContext, (args)); 63 return new GrGLContext(args);
64 } 64 }
65 65
66 GrGLContextInfo::GrGLContextInfo(const ConstructorArgs& args) { 66 GrGLContextInfo::GrGLContextInfo(const ConstructorArgs& args) {
67 fInterface.reset(SkRef(args.fInterface)); 67 fInterface.reset(SkRef(args.fInterface));
68 fGLVersion = args.fGLVersion; 68 fGLVersion = args.fGLVersion;
69 fGLSLGeneration = args.fGLSLGeneration; 69 fGLSLGeneration = args.fGLSLGeneration;
70 fVendor = args.fVendor; 70 fVendor = args.fVendor;
71 fRenderer = args.fRenderer; 71 fRenderer = args.fRenderer;
72 fDriver = args.fDriver; 72 fDriver = args.fDriver;
73 fDriverVersion = args.fDriverVersion; 73 fDriverVersion = args.fDriverVersion;
74 74
75 fGLCaps.reset(SkNEW_ARGS(GrGLCaps, (*args.fContextOptions, *this, fInterface ))); 75 fGLCaps.reset(new GrGLCaps(*args.fContextOptions, *this, fInterface));
76 } 76 }
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLCaps.cpp ('k') | src/gpu/gl/GrGLCreateNullInterface.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698