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

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

Issue 11275088: Remove implicit scoped_refptr operator T* Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 8 years, 2 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
« no previous file with comments | « gpu/command_buffer/service/vertex_attrib_manager.h ('k') | gpu/gles2_conform_support/egl/display.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 f8bc061b9689043796bba96c178cd50c7a7ad065..59e167fd9b0b792dd8f8dab9d0930cb6d91827a8 100644
--- a/gpu/command_buffer/service/vertex_attrib_manager.cc
+++ b/gpu/command_buffer/service/vertex_attrib_manager.cc
@@ -45,7 +45,7 @@ bool VertexAttribManager::VertexAttribInfo::CanAccess(GLuint index) const {
return true;
}
- if (!buffer_ || buffer_->IsDeleted()) {
+ if (!buffer_.get() || buffer_->IsDeleted()) {
return false;
}
@@ -125,7 +125,7 @@ bool VertexAttribManager::Enable(GLuint index, bool enable) {
}
void VertexAttribManager::Unbind(BufferManager::BufferInfo* buffer) {
- if (element_array_buffer_ == buffer) {
+ if (element_array_buffer_.get() == buffer) {
element_array_buffer_ = NULL;
}
for (uint32 vv = 0; vv < max_vertex_attribs_; ++vv) {
« no previous file with comments | « gpu/command_buffer/service/vertex_attrib_manager.h ('k') | gpu/gles2_conform_support/egl/display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698