| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "gpu/command_buffer/service/vertex_attrib_manager.h" | 5 #include "gpu/command_buffer/service/vertex_attrib_manager.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include <list> | 9 #include <list> |
| 10 | 10 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 offset_(0), | 34 offset_(0), |
| 35 normalized_(GL_FALSE), | 35 normalized_(GL_FALSE), |
| 36 gl_stride_(0), | 36 gl_stride_(0), |
| 37 real_stride_(16), | 37 real_stride_(16), |
| 38 divisor_(0), | 38 divisor_(0), |
| 39 integer_(GL_FALSE), | 39 integer_(GL_FALSE), |
| 40 is_client_side_array_(false), | 40 is_client_side_array_(false), |
| 41 list_(NULL) { | 41 list_(NULL) { |
| 42 } | 42 } |
| 43 | 43 |
| 44 VertexAttrib::VertexAttrib(const VertexAttrib& other) = default; |
| 45 |
| 44 VertexAttrib::~VertexAttrib() { | 46 VertexAttrib::~VertexAttrib() { |
| 45 } | 47 } |
| 46 | 48 |
| 47 void VertexAttrib::SetInfo( | 49 void VertexAttrib::SetInfo( |
| 48 Buffer* buffer, | 50 Buffer* buffer, |
| 49 GLint size, | 51 GLint size, |
| 50 GLenum type, | 52 GLenum type, |
| 51 GLboolean normalized, | 53 GLboolean normalized, |
| 52 GLsizei gl_stride, | 54 GLsizei gl_stride, |
| 53 GLsizei real_stride, | 55 GLsizei real_stride, |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 if (current_buffer_id != kInitialBufferId) { | 276 if (current_buffer_id != kInitialBufferId) { |
| 275 // Restore the buffer binding. | 277 // Restore the buffer binding. |
| 276 decoder->RestoreBufferBindings(); | 278 decoder->RestoreBufferBindings(); |
| 277 } | 279 } |
| 278 | 280 |
| 279 return true; | 281 return true; |
| 280 } | 282 } |
| 281 | 283 |
| 282 } // namespace gles2 | 284 } // namespace gles2 |
| 283 } // namespace gpu | 285 } // namespace gpu |
| OLD | NEW |