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

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

Issue 12533007: Use vertex array objects on core profiles. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Use vertex array objects on core profiles. Created 7 years, 9 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 541 matching lines...) Expand 10 before | Expand all | Expand 10 after
552 // someone is still using this vertex array so we can't delete it he re 552 // someone is still using this vertex array so we can't delete it he re
553 array->setMarkedForDeletion(); 553 array->setMarkedForDeletion();
554 } else { 554 } else {
555 array->deleteAction(); 555 array->deleteAction();
556 } 556 }
557 } 557 }
558 } 558 }
559 559
560 GrGLvoid GR_GL_FUNCTION_TYPE debugGLBindVertexArray(GrGLuint id) { 560 GrGLvoid GR_GL_FUNCTION_TYPE debugGLBindVertexArray(GrGLuint id) {
561 GrVertexArrayObj* array = GR_FIND(id, GrVertexArrayObj, GrDebugGL::kVertexAr ray_ObjTypes); 561 GrVertexArrayObj* array = GR_FIND(id, GrVertexArrayObj, GrDebugGL::kVertexAr ray_ObjTypes);
562 GrAlwaysAssert(array); 562 GrAlwaysAssert((0 == id) || NULL != array);
563 GrDebugGL::getInstance()->setVertexArray(array); 563 GrDebugGL::getInstance()->setVertexArray(array);
564 } 564 }
565 565
566 GrGLvoid GR_GL_FUNCTION_TYPE debugGLBindBuffer(GrGLenum target, GrGLuint bufferI D) { 566 GrGLvoid GR_GL_FUNCTION_TYPE debugGLBindBuffer(GrGLenum target, GrGLuint bufferI D) {
567 GrAlwaysAssert(GR_GL_ARRAY_BUFFER == target || GR_GL_ELEMENT_ARRAY_BUFFER == target); 567 GrAlwaysAssert(GR_GL_ARRAY_BUFFER == target || GR_GL_ELEMENT_ARRAY_BUFFER == target);
568 568
569 GrBufferObj *buffer = GR_FIND(bufferID, 569 GrBufferObj *buffer = GR_FIND(bufferID,
570 GrBufferObj, 570 GrBufferObj,
571 GrDebugGL::kBuffer_ObjTypes); 571 GrDebugGL::kBuffer_ObjTypes);
572 // 0 is a permissible bufferID - it unbinds the current buffer 572 // 0 is a permissible bufferID - it unbinds the current buffer
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
899 interface->fBlitFramebuffer = noOpGLBlitFramebuffer; 899 interface->fBlitFramebuffer = noOpGLBlitFramebuffer;
900 interface->fResolveMultisampleFramebuffer = 900 interface->fResolveMultisampleFramebuffer =
901 noOpGLResolveMultisampleFramebuffer; 901 noOpGLResolveMultisampleFramebuffer;
902 interface->fMapBuffer = debugGLMapBuffer; 902 interface->fMapBuffer = debugGLMapBuffer;
903 interface->fUnmapBuffer = debugGLUnmapBuffer; 903 interface->fUnmapBuffer = debugGLUnmapBuffer;
904 interface->fBindFragDataLocationIndexed = 904 interface->fBindFragDataLocationIndexed =
905 noOpGLBindFragDataLocationIndexed; 905 noOpGLBindFragDataLocationIndexed;
906 906
907 return interface; 907 return interface;
908 } 908 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698