| 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 763 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 774 SkFAIL("Unexpected value to glGetBufferParamateriv"); | 774 SkFAIL("Unexpected value to glGetBufferParamateriv"); |
| 775 break; | 775 break; |
| 776 } | 776 } |
| 777 }; | 777 }; |
| 778 } // end of namespace | 778 } // end of namespace |
| 779 | 779 |
| 780 //////////////////////////////////////////////////////////////////////////////// | 780 //////////////////////////////////////////////////////////////////////////////// |
| 781 struct GrDebugGLInterface : public GrGLInterface { | 781 struct GrDebugGLInterface : public GrGLInterface { |
| 782 | 782 |
| 783 public: | 783 public: |
| 784 SK_DECLARE_INST_COUNT(GrDebugGLInterface) | 784 |
| 785 | 785 |
| 786 GrDebugGLInterface() | 786 GrDebugGLInterface() |
| 787 : fWrapped(NULL) { | 787 : fWrapped(NULL) { |
| 788 GrDebugGL::staticRef(); | 788 GrDebugGL::staticRef(); |
| 789 } | 789 } |
| 790 | 790 |
| 791 virtual ~GrDebugGLInterface() { | 791 virtual ~GrDebugGLInterface() { |
| 792 GrDebugGL::staticUnRef(); | 792 GrDebugGL::staticUnRef(); |
| 793 } | 793 } |
| 794 | 794 |
| (...skipping 185 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 |