Index: gpu/command_buffer/service/buffer_manager.cc |
=================================================================== |
--- gpu/command_buffer/service/buffer_manager.cc (revision 67155) |
+++ gpu/command_buffer/service/buffer_manager.cc (working copy) |
@@ -54,6 +54,11 @@ |
} |
} |
+void BufferManager::BufferInfo::set_target(GLenum target) { |
+ DCHECK_EQ(target_, 0u); // you can only set this once. |
+ target_ = target; |
+} |
+ |
BufferManager::BufferInfo::BufferInfo(GLuint service_id) |
: service_id_(service_id), |
target_(0), |
@@ -206,5 +211,3 @@ |
} // namespace gles2 |
} // namespace gpu |
- |
- |