Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(263)

Unified Diff: gpu/command_buffer/service/context_state.h

Issue 11413094: Fix VAOs and client side arrays (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
« no previous file with comments | « gpu/command_buffer/client/vertex_array_object_manager_unittest.cc ('k') | gpu/command_buffer/service/context_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698