| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |