Index: third_party/WebKit/Source/modules/webgl/WebGLVertexArrayObjectBase.h |
diff --git a/third_party/WebKit/Source/modules/webgl/WebGLVertexArrayObjectBase.h b/third_party/WebKit/Source/modules/webgl/WebGLVertexArrayObjectBase.h |
index bcf2d1b2ce804ec894bf4b07cdb4252f1025cfad..57402a394f2f403ec353006dbb5cf2ed3fdbfe0e 100644 |
--- a/third_party/WebKit/Source/modules/webgl/WebGLVertexArrayObjectBase.h |
+++ b/third_party/WebKit/Source/modules/webgl/WebGLVertexArrayObjectBase.h |
@@ -33,6 +33,10 @@ public: |
WebGLBuffer* getArrayBufferForAttrib(size_t); |
void setArrayBufferForAttrib(GLuint, WebGLBuffer*); |
+ void setAttribEnabled(GLuint, bool); |
+ bool getAttribEnabled(GLuint) const; |
+ bool isAllEnabledAttribBufferBound() const { return m_isAllEnabledAttribBufferBound; } |
+ void updateAttribBufferBoundStatus(); |
Ken Russell (switch to Gerrit)
2016/06/07 04:25:11
updateAttribBufferBoundStatus should be private, o
qiankun
2016/06/07 05:01:35
Done.
|
void unbindBuffer(WebGLBuffer*); |
ScopedPersistent<v8::Array>* getPersistentCache(); |
@@ -54,6 +58,8 @@ private: |
bool m_destructionInProgress; |
Member<WebGLBuffer> m_boundElementArrayBuffer; |
HeapVector<Member<WebGLBuffer>> m_arrayBufferList; |
+ Vector<bool> m_attribEnabled; |
+ bool m_isAllEnabledAttribBufferBound; |
// For preserving the wrappers of WebGLBuffer objects latched in |
// via vertexAttribPointer calls. |