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

Side by Side Diff: gpu/command_buffer/service/vertex_attrib_manager.cc

Issue 1136713003: Add ES3 commands GetVertexAttribI{u}iv to GPU command buffer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 months 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 unified diff | Download patch
OLDNEW
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
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),
Zhenyao Mo 2015/05/08 22:20:56 We don't have a path to set this to true in this C
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698