summaryrefslogtreecommitdiffstats
path: root/WebCore/html/canvas/WebGLProgram.h
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/html/canvas/WebGLProgram.h')
-rw-r--r--WebCore/html/canvas/WebGLProgram.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/WebCore/html/canvas/WebGLProgram.h b/WebCore/html/canvas/WebGLProgram.h
index 8804d39..56bce15 100644
--- a/WebCore/html/canvas/WebGLProgram.h
+++ b/WebCore/html/canvas/WebGLProgram.h
@@ -30,6 +30,7 @@
#include <wtf/PassRefPtr.h>
#include <wtf/RefCounted.h>
+#include <wtf/Vector.h>
namespace WebCore {
@@ -38,11 +39,20 @@ namespace WebCore {
virtual ~WebGLProgram() { deleteObject(); }
static PassRefPtr<WebGLProgram> create(WebGLRenderingContext*);
+
+ // cacheActiveAttribLocation() is only called once after linkProgram()
+ // succeeds.
+ bool cacheActiveAttribLocations();
+ int numActiveAttribLocations();
+ int getActiveAttribLocation(int index);
protected:
WebGLProgram(WebGLRenderingContext*);
virtual void _deleteObject(Platform3DObject);
+
+ private:
+ Vector<int> m_activeAttribLocations;
};
} // namespace WebCore