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

Unified Diff: gpu/command_buffer/service/vertex_attrib_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 side-by-side diff with in-line comments
Download patch
Index: gpu/command_buffer/service/vertex_attrib_manager.cc
diff --git a/gpu/command_buffer/service/vertex_attrib_manager.cc b/gpu/command_buffer/service/vertex_attrib_manager.cc
index f2daa9c551ed9d96e8cbfdd3d7fa6dec5f1ddc07..4dbb13283e9abe8b0ee510cdd1df88c8df419bcb 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;
}
« no previous file with comments | « gpu/command_buffer/service/vertex_attrib_manager.h ('k') | gpu/command_buffer/service/vertex_attrib_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698