This CL removes all dependencies on GL headers across all of Ganesh. New
GrGLint, etc. types are introduced, and new GR_GL_XXXX constants for use at all
GL call-sites.
Review: http://codereview.appspot.com/4272061/
git-svn-id: http://skia.googlecode.com/svn/trunk@959 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/gpu/include/GrGLVertexBuffer.h b/gpu/include/GrGLVertexBuffer.h
index 30ae734..c4f62a0 100644
--- a/gpu/include/GrGLVertexBuffer.h
+++ b/gpu/include/GrGLVertexBuffer.h
@@ -1,5 +1,5 @@
/*
- Copyright 2010 Google Inc.
+ Copyright 2011 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -25,7 +25,7 @@
class GrGLVertexBuffer : public GrVertexBuffer {
protected:
- GrGLVertexBuffer(GLuint id,
+ GrGLVertexBuffer(GrGLuint id,
GrGpuGL* gl,
size_t sizeInBytes,
bool dynamic);
@@ -43,13 +43,13 @@
virtual bool updateSubData(const void* src,
size_t srcSizeInBytes,
size_t offset);
- GLuint bufferID() const;
+ GrGLuint bufferID() const;
private:
void bind() const;
GrGpuGL* fGL;
- GLuint fBufferID;
+ GrGLuint fBufferID;
void* fLockPtr;
friend class GrGpuGL;