Index: gpu/command_buffer/service/context_state.h |
diff --git a/gpu/command_buffer/service/context_state.h b/gpu/command_buffer/service/context_state.h |
index a9fc5d0c434378626618effc59e983a97af7b9b7..d2f428bf5e2d7663cf5b5b3da2fe4007154b54ea 100644 |
--- a/gpu/command_buffer/service/context_state.h |
+++ b/gpu/command_buffer/service/context_state.h |
@@ -77,6 +77,15 @@ struct GPU_EXPORT TextureUnit { |
} |
}; |
+struct Vec4 { |
+ Vec4() { |
+ v[0] = 0.0f; |
+ v[1] = 0.0f; |
+ v[2] = 0.0f; |
+ v[3] = 1.0f; |
+ } |
+ float v[4]; |
+}; |
struct GPU_EXPORT ContextState { |
ContextState(); |
@@ -117,6 +126,9 @@ struct GPU_EXPORT ContextState { |
// Which textures are bound to texture units through glActiveTexture. |
std::vector<TextureUnit> texture_units; |
+ // The values for each attrib. |
+ std::vector<Vec4> attrib_values; |
+ |
// Class that manages vertex attribs. |
VertexAttribManager::Ref vertex_attrib_manager; |