summaryrefslogtreecommitdiffstats
path: root/gpu/command_buffer/service/vertex_attrib_manager.cc
diff options
context:
space:
mode:
authorgman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-27 21:12:35 +0000
committergman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-27 21:12:35 +0000
commited9f9cd8516eee1fac01379dc7fd0be4fb63e5c4 (patch)
tree7d5d691ebafb18e259bd0f0356c36416d37e30d3 /gpu/command_buffer/service/vertex_attrib_manager.cc
parent31f49d116d1fee7389052b9a524ec668a07dbf69 (diff)
downloadchromium_src-ed9f9cd8516eee1fac01379dc7fd0be4fb63e5c4.zip
chromium_src-ed9f9cd8516eee1fac01379dc7fd0be4fb63e5c4.tar.gz
chromium_src-ed9f9cd8516eee1fac01379dc7fd0be4fb63e5c4.tar.bz2
Refactor/Rename a bunch of GPU stuff
Remove typedef scoped_refptr<Foo> Ref; FooManager::FooInfo -> Foo Create/Get/RemoveFooInfo to Create/Get//RemoveFoo BUG=None Review URL: https://codereview.chromium.org/12326146 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@185036 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/command_buffer/service/vertex_attrib_manager.cc')
-rw-r--r--gpu/command_buffer/service/vertex_attrib_manager.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/gpu/command_buffer/service/vertex_attrib_manager.cc b/gpu/command_buffer/service/vertex_attrib_manager.cc
index f2daa9c..4dbb132 100644
--- a/gpu/command_buffer/service/vertex_attrib_manager.cc
+++ b/gpu/command_buffer/service/vertex_attrib_manager.cc
@@ -20,7 +20,7 @@
namespace gpu {
namespace gles2 {
-VertexAttribManager::VertexAttribInfo::VertexAttribInfo()
+VertexAttrib::VertexAttrib()
: index_(0),
enabled_(false),
size_(4),
@@ -33,10 +33,10 @@ VertexAttribManager::VertexAttribInfo::VertexAttribInfo()
list_(NULL) {
}
-VertexAttribManager::VertexAttribInfo::~VertexAttribInfo() {
+VertexAttrib::~VertexAttrib() {
}
-bool VertexAttribManager::VertexAttribInfo::CanAccess(GLuint index) const {
+bool VertexAttrib::CanAccess(GLuint index) const {
if (!enabled_) {
return true;
}
@@ -108,7 +108,7 @@ bool VertexAttribManager::Enable(GLuint index, bool enable) {
if (index >= vertex_attrib_infos_.size()) {
return false;
}
- VertexAttribInfo& info = vertex_attrib_infos_[index];
+ VertexAttrib& info = vertex_attrib_infos_[index];
if (info.enabled() != enable) {
info.set_enabled(enable);
info.SetList(enable ? &enabled_vertex_attribs_ : &disabled_vertex_attribs_);
@@ -116,7 +116,7 @@ bool VertexAttribManager::Enable(GLuint index, bool enable) {
return true;
}
-void VertexAttribManager::Unbind(BufferManager::BufferInfo* buffer) {
+void VertexAttribManager::Unbind(BufferManager::Buffer* buffer) {
if (element_array_buffer_ == buffer) {
element_array_buffer_ = NULL;
}