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

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

Issue 12326146: Refactor/Rename a bunch of GPU stuff (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 | Annotate | Revision Log
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_array_manager.h" 5 #include "gpu/command_buffer/service/vertex_array_manager.h"
6 #include "base/debug/trace_event.h" 6 #include "base/debug/trace_event.h"
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "gpu/command_buffer/common/gles2_cmd_utils.h" 8 #include "gpu/command_buffer/common/gles2_cmd_utils.h"
9 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" 9 #include "gpu/command_buffer/service/gles2_cmd_decoder.h"
10 #include "gpu/command_buffer/service/vertex_attrib_manager.h" 10 #include "gpu/command_buffer/service/vertex_attrib_manager.h"
(...skipping 11 matching lines...) Expand all
22 CHECK_EQ(vertex_attrib_manager_count_, 0u); 22 CHECK_EQ(vertex_attrib_manager_count_, 0u);
23 } 23 }
24 24
25 void VertexArrayManager::Destroy(bool have_context) { 25 void VertexArrayManager::Destroy(bool have_context) {
26 have_context_ = have_context; 26 have_context_ = have_context;
27 vertex_attrib_managers_.clear(); 27 vertex_attrib_managers_.clear();
28 } 28 }
29 29
30 void VertexArrayManager::CreateVertexAttribManager( 30 void VertexArrayManager::CreateVertexAttribManager(
31 GLuint client_id, GLuint service_id, uint32 num_vertex_attribs) { 31 GLuint client_id, GLuint service_id, uint32 num_vertex_attribs) {
32 VertexAttribManager::Ref vertex_attrib_manager( 32 scoped_refptr<VertexAttribManager> vertex_attrib_manager(
33 new VertexAttribManager(this, service_id, num_vertex_attribs)); 33 new VertexAttribManager(this, service_id, num_vertex_attribs));
34 std::pair<VertexAttribManagerMap::iterator, bool> result = 34 std::pair<VertexAttribManagerMap::iterator, bool> result =
35 vertex_attrib_managers_.insert( 35 vertex_attrib_managers_.insert(
36 std::make_pair(client_id, vertex_attrib_manager)); 36 std::make_pair(client_id, vertex_attrib_manager));
37 DCHECK(result.second); 37 DCHECK(result.second);
38 } 38 }
39 39
40 VertexAttribManager* VertexArrayManager::GetVertexAttribManager( 40 VertexAttribManager* VertexArrayManager::GetVertexAttribManager(
41 GLuint client_id) { 41 GLuint client_id) {
42 VertexAttribManagerMap::iterator it = vertex_attrib_managers_.find(client_id); 42 VertexAttribManagerMap::iterator it = vertex_attrib_managers_.find(client_id);
(...skipping 30 matching lines...) Expand all
73 return true; 73 return true;
74 } 74 }
75 } 75 }
76 return false; 76 return false;
77 } 77 }
78 78
79 } // namespace gles2 79 } // namespace gles2
80 } // namespace gpu 80 } // namespace gpu
81 81
82 82
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/texture_manager_unittest.cc ('k') | gpu/command_buffer/service/vertex_attrib_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698