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 <list> | 7 #include <list> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 VertexAttrib::VertexAttrib() | 28 VertexAttrib::VertexAttrib() |
29 : index_(0), | 29 : index_(0), |
30 enabled_(false), | 30 enabled_(false), |
31 size_(4), | 31 size_(4), |
32 type_(GL_FLOAT), | 32 type_(GL_FLOAT), |
33 offset_(0), | 33 offset_(0), |
34 normalized_(GL_FALSE), | 34 normalized_(GL_FALSE), |
35 gl_stride_(0), | 35 gl_stride_(0), |
36 real_stride_(16), | 36 real_stride_(16), |
37 divisor_(0), | 37 divisor_(0), |
| 38 integer_(GL_FALSE), |
38 is_client_side_array_(false), | 39 is_client_side_array_(false), |
39 list_(NULL) { | 40 list_(NULL) { |
40 } | 41 } |
41 | 42 |
42 VertexAttrib::~VertexAttrib() { | 43 VertexAttrib::~VertexAttrib() { |
43 } | 44 } |
44 | 45 |
45 void VertexAttrib::SetInfo( | 46 void VertexAttrib::SetInfo( |
46 Buffer* buffer, | 47 Buffer* buffer, |
47 GLint size, | 48 GLint size, |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 if (current_buffer_id != kInitialBufferId) { | 270 if (current_buffer_id != kInitialBufferId) { |
270 // Restore the buffer binding. | 271 // Restore the buffer binding. |
271 decoder->RestoreBufferBindings(); | 272 decoder->RestoreBufferBindings(); |
272 } | 273 } |
273 | 274 |
274 return true; | 275 return true; |
275 } | 276 } |
276 | 277 |
277 } // namespace gles2 | 278 } // namespace gles2 |
278 } // namespace gpu | 279 } // namespace gpu |
OLD | NEW |