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

Side by Side Diff: src/gpu/gl/debug/GrGLCreateDebugInterface.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/debug/GrFakeRefObj.h ('k') | src/gpu/gl/debug/SkDebugGLContext.h » ('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 /* 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 9
10 #include "gl/GrGLInterface.h" 10 #include "gl/GrGLInterface.h"
(...skipping 818 matching lines...) Expand 10 before | Expand all | Expand 10 after
829 protected: 829 protected:
830 private: 830 private:
831 831
832 SkAutoTUnref<GrGLInterface> fWrapped; 832 SkAutoTUnref<GrGLInterface> fWrapped;
833 833
834 typedef GrGLInterface INHERITED; 834 typedef GrGLInterface INHERITED;
835 }; 835 };
836 836
837 //////////////////////////////////////////////////////////////////////////////// 837 ////////////////////////////////////////////////////////////////////////////////
838 const GrGLInterface* GrGLCreateDebugInterface() { 838 const GrGLInterface* GrGLCreateDebugInterface() {
839 GrGLInterface* interface = SkNEW(GrDebugGLInterface); 839 GrGLInterface *interface = new GrDebugGLInterface;
840 840
841 interface->fStandard = kGL_GrGLStandard; 841 interface->fStandard = kGL_GrGLStandard;
842 842
843 GrGLInterface::Functions* functions = &interface->fFunctions; 843 GrGLInterface::Functions* functions = &interface->fFunctions;
844 functions->fActiveTexture = debugGLActiveTexture; 844 functions->fActiveTexture = debugGLActiveTexture;
845 functions->fAttachShader = debugGLAttachShader; 845 functions->fAttachShader = debugGLAttachShader;
846 functions->fBeginQuery = debugGLBeginQuery; 846 functions->fBeginQuery = debugGLBeginQuery;
847 functions->fBindAttribLocation = debugGLBindAttribLocation; 847 functions->fBindAttribLocation = debugGLBindAttribLocation;
848 functions->fBindBuffer = debugGLBindBuffer; 848 functions->fBindBuffer = debugGLBindBuffer;
849 functions->fBindFragDataLocation = noOpGLBindFragDataLocation; 849 functions->fBindFragDataLocation = noOpGLBindFragDataLocation;
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
980 functions->fMatrixLoadIdentity = noOpGLMatrixLoadIdentity; 980 functions->fMatrixLoadIdentity = noOpGLMatrixLoadIdentity;
981 981
982 functions->fBindFragDataLocationIndexed = 982 functions->fBindFragDataLocationIndexed =
983 noOpGLBindFragDataLocationIndexed; 983 noOpGLBindFragDataLocationIndexed;
984 984
985 interface->fExtensions.init(kGL_GrGLStandard, functions->fGetString, functio ns->fGetStringi, 985 interface->fExtensions.init(kGL_GrGLStandard, functions->fGetString, functio ns->fGetStringi,
986 functions->fGetIntegerv); 986 functions->fGetIntegerv);
987 987
988 return interface; 988 return interface;
989 } 989 }
OLDNEW
« no previous file with comments | « src/gpu/gl/debug/GrFakeRefObj.h ('k') | src/gpu/gl/debug/SkDebugGLContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698