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 768 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
779 // and then pass the wrapped interface to the debug GL interface. | 779 // and then pass the wrapped interface to the debug GL interface. |
780 | 780 |
781 protected: | 781 protected: |
782 private: | 782 private: |
783 | 783 |
784 SkAutoTUnref<GrGLInterface> fWrapped; | 784 SkAutoTUnref<GrGLInterface> fWrapped; |
785 | 785 |
786 typedef GrGLInterface INHERITED; | 786 typedef GrGLInterface INHERITED; |
787 }; | 787 }; |
788 | 788 |
789 SK_DEFINE_INST_COUNT(GrDebugGLInterface) | |
790 | |
791 //////////////////////////////////////////////////////////////////////////////// | 789 //////////////////////////////////////////////////////////////////////////////// |
792 const GrGLInterface* GrGLCreateDebugInterface() { | 790 const GrGLInterface* GrGLCreateDebugInterface() { |
793 GrGLInterface* interface = SkNEW(GrDebugGLInterface); | 791 GrGLInterface* interface = SkNEW(GrDebugGLInterface); |
794 | 792 |
795 interface->fBindingsExported = kDesktop_GrGLBinding; | 793 interface->fBindingsExported = kDesktop_GrGLBinding; |
796 interface->fActiveTexture = debugGLActiveTexture; | 794 interface->fActiveTexture = debugGLActiveTexture; |
797 interface->fAttachShader = debugGLAttachShader; | 795 interface->fAttachShader = debugGLAttachShader; |
798 interface->fBeginQuery = debugGLBeginQuery; | 796 interface->fBeginQuery = debugGLBeginQuery; |
799 interface->fBindAttribLocation = debugGLBindAttribLocation; | 797 interface->fBindAttribLocation = debugGLBindAttribLocation; |
800 interface->fBindBuffer = debugGLBindBuffer; | 798 interface->fBindBuffer = debugGLBindBuffer; |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
926 interface->fBlitFramebuffer = noOpGLBlitFramebuffer; | 924 interface->fBlitFramebuffer = noOpGLBlitFramebuffer; |
927 interface->fResolveMultisampleFramebuffer = | 925 interface->fResolveMultisampleFramebuffer = |
928 noOpGLResolveMultisampleFramebuffer; | 926 noOpGLResolveMultisampleFramebuffer; |
929 interface->fMapBuffer = debugGLMapBuffer; | 927 interface->fMapBuffer = debugGLMapBuffer; |
930 interface->fUnmapBuffer = debugGLUnmapBuffer; | 928 interface->fUnmapBuffer = debugGLUnmapBuffer; |
931 interface->fBindFragDataLocationIndexed = | 929 interface->fBindFragDataLocationIndexed = |
932 noOpGLBindFragDataLocationIndexed; | 930 noOpGLBindFragDataLocationIndexed; |
933 | 931 |
934 return interface; | 932 return interface; |
935 } | 933 } |
OLD | NEW |