Index: gpu/command_buffer/service/vertex_attrib_manager.h |
diff --git a/gpu/command_buffer/service/vertex_attrib_manager.h b/gpu/command_buffer/service/vertex_attrib_manager.h |
index 76c75c8aff2144baec95c1a6e5fd73c8b577a4a5..ddd29beb044ca2d4e46d3d743bb66d74e430ae86 100644 |
--- a/gpu/command_buffer/service/vertex_attrib_manager.h |
+++ b/gpu/command_buffer/service/vertex_attrib_manager.h |
@@ -17,6 +17,9 @@ |
namespace gpu { |
namespace gles2 { |
+class FeatureInfo; |
+class GLES2Decoder; |
+class Program; |
class VertexArrayManager; |
// Info about a Vertex Attribute. This is used to track what the user currently |
@@ -75,6 +78,14 @@ class GPU_EXPORT VertexAttrib { |
max_vertex_accessed; |
} |
+ bool is_client_side_array() const { |
+ return is_client_side_array_; |
+ } |
+ |
+ void set_is_client_side_array(bool value) { |
+ is_client_side_array_ = value; |
+ } |
+ |
private: |
friend class VertexAttribManager; |
@@ -139,6 +150,9 @@ class GPU_EXPORT VertexAttrib { |
GLsizei divisor_; |
+ // Will be true if this was assigned to a client side array. |
+ bool is_client_side_array_; |
+ |
// The buffer bound to this attribute. |
scoped_refptr<Buffer> buffer_; |
@@ -231,6 +245,14 @@ class GPU_EXPORT VertexAttribManager : |
return vertex_attrib_infos_.size(); |
} |
+ bool ValidateBindings( |
+ const char* function_name, |
+ GLES2Decoder* decoder, |
+ FeatureInfo* feature_info, |
+ Program* current_program, |
+ GLuint max_vertex_accessed, |
+ GLsizei primcount); |
+ |
private: |
friend class VertexArrayManager; |
friend class VertexArrayManagerTest; |