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

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

Issue 1725113002: gpu: Add out-of-line copy ctors for complex classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 #ifndef GPU_COMMAND_BUFFER_SERVICE_VERTEX_ATTRIB_MANAGER_H_ 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_VERTEX_ATTRIB_MANAGER_H_
6 #define GPU_COMMAND_BUFFER_SERVICE_VERTEX_ATTRIB_MANAGER_H_ 6 #define GPU_COMMAND_BUFFER_SERVICE_VERTEX_ATTRIB_MANAGER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 15 matching lines...) Expand all
26 class VertexArrayManager; 26 class VertexArrayManager;
27 27
28 // Info about a Vertex Attribute. This is used to track what the user currently 28 // Info about a Vertex Attribute. This is used to track what the user currently
29 // has bound on each Vertex Attribute so that checking can be done at 29 // has bound on each Vertex Attribute so that checking can be done at
30 // glDrawXXX time. 30 // glDrawXXX time.
31 class GPU_EXPORT VertexAttrib { 31 class GPU_EXPORT VertexAttrib {
32 public: 32 public:
33 typedef std::list<VertexAttrib*> VertexAttribList; 33 typedef std::list<VertexAttrib*> VertexAttribList;
34 34
35 VertexAttrib(); 35 VertexAttrib();
36 VertexAttrib(const VertexAttrib& other);
36 ~VertexAttrib(); 37 ~VertexAttrib();
37 38
38 // Returns true if this VertexAttrib can access index. 39 // Returns true if this VertexAttrib can access index.
39 bool CanAccess(GLuint index) const; 40 bool CanAccess(GLuint index) const;
40 41
41 Buffer* buffer() const { return buffer_.get(); } 42 Buffer* buffer() const { return buffer_.get(); }
42 43
43 GLsizei offset() const { 44 GLsizei offset() const {
44 return offset_; 45 return offset_;
45 } 46 }
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 300
300 // Service side vertex array object id. 301 // Service side vertex array object id.
301 GLuint service_id_; 302 GLuint service_id_;
302 }; 303 };
303 304
304 } // namespace gles2 305 } // namespace gles2
305 } // namespace gpu 306 } // namespace gpu
306 307
307 #endif // GPU_COMMAND_BUFFER_SERVICE_VERTEX_ATTRIB_MANAGER_H_ 308 #endif // GPU_COMMAND_BUFFER_SERVICE_VERTEX_ATTRIB_MANAGER_H_
308 309
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/texture_manager.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