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

Unified Diff: gpu/command_buffer/service/vertex_attrib_manager.cc

Issue 16293004: Update gpu/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 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 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 e1ae1c065839d943b556816d031a3c4bc9cb6bcc..86f537e1c2c32d3ff50e96c29736e65663d0d4ad 100644
--- a/gpu/command_buffer/service/vertex_attrib_manager.cc
+++ b/gpu/command_buffer/service/vertex_attrib_manager.cc
@@ -62,7 +62,7 @@ void VertexAttrib::SetInfo(
}
void VertexAttrib::Unbind(Buffer* buffer) {
- if (buffer_ == buffer) {
+ if (buffer_.get() == buffer) {
buffer_ = NULL;
}
}
@@ -72,7 +72,7 @@ bool VertexAttrib::CanAccess(GLuint index) const {
return true;
}
- if (!buffer_ || buffer_->IsDeleted()) {
+ if (!buffer_.get() || buffer_->IsDeleted()) {
return false;
}
@@ -152,7 +152,7 @@ bool VertexAttribManager::Enable(GLuint index, bool enable) {
}
void VertexAttribManager::Unbind(Buffer* buffer) {
- if (element_array_buffer_ == buffer) {
+ if (element_array_buffer_.get() == buffer) {
element_array_buffer_ = NULL;
}
for (uint32 vv = 0; vv < vertex_attribs_.size(); ++vv) {
« no previous file with comments | « gpu/command_buffer/service/vertex_attrib_manager.h ('k') | gpu/command_buffer/tests/gl_gpu_memory_buffer_unittests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698