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

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

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
Index: gpu/command_buffer/service/vertex_attrib_manager.h
diff --git a/gpu/command_buffer/service/vertex_attrib_manager.h b/gpu/command_buffer/service/vertex_attrib_manager.h
index 95f58b1a1699eb756cab13267b4d08543329e0c1..86f7857d8b7feab165439b92b42cea7bc4d714b6 100644
--- a/gpu/command_buffer/service/vertex_attrib_manager.h
+++ b/gpu/command_buffer/service/vertex_attrib_manager.h
@@ -43,7 +43,7 @@ class GPU_EXPORT VertexAttribManager :
bool CanAccess(GLuint index) const;
BufferManager::BufferInfo* buffer() const {
- return buffer_;
+ return buffer_.get();
}
GLsizei offset() const {
@@ -138,7 +138,7 @@ class GPU_EXPORT VertexAttribManager :
}
void Unbind(BufferManager::BufferInfo* buffer) {
- if (buffer_ == buffer) {
+ if (buffer_.get() == buffer) {
buffer_ = NULL;
}
}
@@ -240,7 +240,7 @@ class GPU_EXPORT VertexAttribManager :
}
BufferManager::BufferInfo* element_array_buffer() const {
- return element_array_buffer_;
+ return element_array_buffer_.get();
}
GLuint service_id() const {
« no previous file with comments | « gpu/command_buffer/service/vertex_array_manager.cc ('k') | gpu/command_buffer/service/vertex_attrib_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698