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

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

Issue 8515023: Allow deleted resources to be used (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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/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 ef24696385f16681384b5be330b8adb028e397a0..9cbc18f58aba3ea1eddc2e35e9cf210f3ca387e5 100644
--- a/gpu/command_buffer/service/vertex_attrib_manager.h
+++ b/gpu/command_buffer/service/vertex_attrib_manager.h
@@ -111,6 +111,12 @@ class VertexAttribManager {
offset_ = offset;
}
+ void Unbind(BufferManager::BufferInfo* buffer) {
+ if (buffer_ == buffer) {
+ buffer_ = NULL;
+ }
+ }
+
// The index of this attrib.
GLuint index_;
@@ -195,6 +201,7 @@ class VertexAttribManager {
}
}
+ void Unbind(BufferManager::BufferInfo* buffer);
private:
uint32 max_vertex_attribs_;
« no previous file with comments | « gpu/command_buffer/service/texture_manager_unittest.cc ('k') | gpu/command_buffer/service/vertex_attrib_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698