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

Side by Side Diff: src/gpu/gl/debug/GrGLCreateDebugInterface.cpp

Issue 98703002: Fix compilation with SK_ENABLE_INST_COUNT=1 (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years 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 | Annotate | Revision Log
« no previous file with comments | « src/gpu/gl/SkGLContextHelper.cpp ('k') | src/image/SkImage.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 /* 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
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
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 }
OLDNEW
« no previous file with comments | « src/gpu/gl/SkGLContextHelper.cpp ('k') | src/image/SkImage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698