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

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

Issue 20436002: get genmipmap function in the struct (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: fix rebase conflicts Created 7 years, 5 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 | Annotate | Revision Log
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 505 matching lines...) Expand 10 before | Expand all | Expand 10 after
516 GrFakeRefObj *obj = GrDebugGL::getInstance()->createObj(type); 516 GrFakeRefObj *obj = GrDebugGL::getInstance()->createObj(type);
517 GrAlwaysAssert(obj); 517 GrAlwaysAssert(obj);
518 ids[i] = obj->getID(); 518 ids[i] = obj->getID();
519 } 519 }
520 } 520 }
521 521
522 GrGLvoid GR_GL_FUNCTION_TYPE debugGLGenBuffers(GrGLsizei n, GrGLuint* ids) { 522 GrGLvoid GR_GL_FUNCTION_TYPE debugGLGenBuffers(GrGLsizei n, GrGLuint* ids) {
523 debugGenObjs(GrDebugGL::kBuffer_ObjTypes, n, ids); 523 debugGenObjs(GrDebugGL::kBuffer_ObjTypes, n, ids);
524 } 524 }
525 525
526 GrGLvoid GR_GL_FUNCTION_TYPE debugGLGenerateMipmap(GrGLenum level) {
527 }
528
526 GrGLvoid GR_GL_FUNCTION_TYPE debugGLGenFramebuffers(GrGLsizei n, 529 GrGLvoid GR_GL_FUNCTION_TYPE debugGLGenFramebuffers(GrGLsizei n,
527 GrGLuint* ids) { 530 GrGLuint* ids) {
528 debugGenObjs(GrDebugGL::kFrameBuffer_ObjTypes, n, ids); 531 debugGenObjs(GrDebugGL::kFrameBuffer_ObjTypes, n, ids);
529 } 532 }
530 533
531 GrGLvoid GR_GL_FUNCTION_TYPE debugGLGenRenderbuffers(GrGLsizei n, 534 GrGLvoid GR_GL_FUNCTION_TYPE debugGLGenRenderbuffers(GrGLsizei n,
532 GrGLuint* ids) { 535 GrGLuint* ids) {
533 debugGenObjs(GrDebugGL::kRenderBuffer_ObjTypes, n, ids); 536 debugGenObjs(GrDebugGL::kRenderBuffer_ObjTypes, n, ids);
534 } 537 }
535 538
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
817 interface->fDrawArrays = noOpGLDrawArrays; 820 interface->fDrawArrays = noOpGLDrawArrays;
818 interface->fDrawBuffer = noOpGLDrawBuffer; 821 interface->fDrawBuffer = noOpGLDrawBuffer;
819 interface->fDrawBuffers = noOpGLDrawBuffers; 822 interface->fDrawBuffers = noOpGLDrawBuffers;
820 interface->fDrawElements = noOpGLDrawElements; 823 interface->fDrawElements = noOpGLDrawElements;
821 interface->fEnable = noOpGLEnable; 824 interface->fEnable = noOpGLEnable;
822 interface->fEnableVertexAttribArray = noOpGLEnableVertexAttribArray; 825 interface->fEnableVertexAttribArray = noOpGLEnableVertexAttribArray;
823 interface->fEndQuery = noOpGLEndQuery; 826 interface->fEndQuery = noOpGLEndQuery;
824 interface->fFinish = noOpGLFinish; 827 interface->fFinish = noOpGLFinish;
825 interface->fFlush = noOpGLFlush; 828 interface->fFlush = noOpGLFlush;
826 interface->fFrontFace = noOpGLFrontFace; 829 interface->fFrontFace = noOpGLFrontFace;
830 interface->fGenerateMipmap = debugGLGenerateMipmap;
827 interface->fGenBuffers = debugGLGenBuffers; 831 interface->fGenBuffers = debugGLGenBuffers;
828 interface->fGenQueries = noOpGLGenIds; 832 interface->fGenQueries = noOpGLGenIds;
829 interface->fGenTextures = debugGLGenTextures; 833 interface->fGenTextures = debugGLGenTextures;
830 interface->fGetBufferParameteriv = debugGLGetBufferParameteriv; 834 interface->fGetBufferParameteriv = debugGLGetBufferParameteriv;
831 interface->fGetError = noOpGLGetError; 835 interface->fGetError = noOpGLGetError;
832 interface->fGetIntegerv = noOpGLGetIntegerv; 836 interface->fGetIntegerv = noOpGLGetIntegerv;
833 interface->fGetQueryObjecti64v = noOpGLGetQueryObjecti64v; 837 interface->fGetQueryObjecti64v = noOpGLGetQueryObjecti64v;
834 interface->fGetQueryObjectiv = noOpGLGetQueryObjectiv; 838 interface->fGetQueryObjectiv = noOpGLGetQueryObjectiv;
835 interface->fGetQueryObjectui64v = noOpGLGetQueryObjectui64v; 839 interface->fGetQueryObjectui64v = noOpGLGetQueryObjectui64v;
836 interface->fGetQueryObjectuiv = noOpGLGetQueryObjectuiv; 840 interface->fGetQueryObjectuiv = noOpGLGetQueryObjectuiv;
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
905 interface->fBlitFramebuffer = noOpGLBlitFramebuffer; 909 interface->fBlitFramebuffer = noOpGLBlitFramebuffer;
906 interface->fResolveMultisampleFramebuffer = 910 interface->fResolveMultisampleFramebuffer =
907 noOpGLResolveMultisampleFramebuffer; 911 noOpGLResolveMultisampleFramebuffer;
908 interface->fMapBuffer = debugGLMapBuffer; 912 interface->fMapBuffer = debugGLMapBuffer;
909 interface->fUnmapBuffer = debugGLUnmapBuffer; 913 interface->fUnmapBuffer = debugGLUnmapBuffer;
910 interface->fBindFragDataLocationIndexed = 914 interface->fBindFragDataLocationIndexed =
911 noOpGLBindFragDataLocationIndexed; 915 noOpGLBindFragDataLocationIndexed;
912 916
913 return interface; 917 return interface;
914 } 918 }
OLDNEW
« no previous file with comments | « src/gpu/gl/angle/GrGLCreateANGLEInterface.cpp ('k') | src/gpu/gl/iOS/GrGLCreateNativeInterface_iOS.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698