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

Unified Diff: src/gpu/gl/debug/GrDebugGL.h

Issue 12379025: Add support to GrGLInterface for vertex array objects (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/gl/angle/GrGLCreateANGLEInterface.cpp ('k') | src/gpu/gl/debug/GrDebugGL.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/gl/debug/GrDebugGL.h
===================================================================
--- src/gpu/gl/debug/GrDebugGL.h (revision 7907)
+++ src/gpu/gl/debug/GrDebugGL.h (working copy)
@@ -12,13 +12,14 @@
#include "SkTArray.h"
#include "gl/GrGLInterface.h"
+class GrBufferObj;
class GrFakeRefObj;
-class GrTextureUnitObj;
-class GrBufferObj;
-class GrTextureObj;
class GrFrameBufferObj;
+class GrProgramObj;
class GrRenderBufferObj;
-class GrProgramObj;
+class GrTextureObj;
+class GrTextureUnitObj;
+class GrVertexArrayObj;
////////////////////////////////////////////////////////////////////////////////
// This is the main debugging object. It is a singleton and keeps track of
@@ -33,6 +34,7 @@
kShader_ObjTypes,
kProgram_ObjTypes,
kTextureUnit_ObjTypes,
+ kVertexArray_ObjTypes,
kObjTypeCount
};
@@ -63,6 +65,9 @@
void setElementArrayBuffer(GrBufferObj *elementArrayBuffer);
GrBufferObj *getElementArrayBuffer() { return fElementArrayBuffer; }
+ void setVertexArray(GrVertexArrayObj* vertexArray);
+ GrVertexArrayObj* getVertexArray() { return fVertexArray; }
+
void setTexture(GrTextureObj *texture);
void setFrameBuffer(GrFrameBufferObj *frameBuffer);
@@ -119,13 +124,14 @@
GrGLint fUnPackRowLength;
GrGLuint fMaxTextureUnits;
GrGLuint fCurTextureUnit;
- GrBufferObj * fArrayBuffer;
- GrBufferObj * fElementArrayBuffer;
- GrFrameBufferObj *fFrameBuffer;
- GrRenderBufferObj *fRenderBuffer;
- GrProgramObj * fProgram;
- GrTextureObj * fTexture;
+ GrBufferObj* fArrayBuffer;
+ GrBufferObj* fElementArrayBuffer;
+ GrFrameBufferObj* fFrameBuffer;
+ GrRenderBufferObj* fRenderBuffer;
+ GrProgramObj* fProgram;
+ GrTextureObj* fTexture;
GrTextureUnitObj *fTextureUnits[kDefaultMaxTextureUnits];
+ GrVertexArrayObj *fVertexArray;
typedef GrFakeRefObj *(*Create)();
« no previous file with comments | « src/gpu/gl/angle/GrGLCreateANGLEInterface.cpp ('k') | src/gpu/gl/debug/GrDebugGL.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698