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

Unified Diff: gpu/command_buffer/service/vertex_array_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/texture_manager.h ('k') | gpu/command_buffer/service/vertex_attrib_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/vertex_array_manager.cc
diff --git a/gpu/command_buffer/service/vertex_array_manager.cc b/gpu/command_buffer/service/vertex_array_manager.cc
index d200db60d33f10fa37f3e75fdaa7e578873168e6..2838ce8c2612339d519f09cc6683dbdcbb6952bc 100644
--- a/gpu/command_buffer/service/vertex_array_manager.cc
+++ b/gpu/command_buffer/service/vertex_array_manager.cc
@@ -40,13 +40,9 @@ void VertexArrayManager::CreateVertexAttribManager(
VertexAttribManager* VertexArrayManager::GetVertexAttribManager(
GLuint client_id) {
VertexAttribManagerMap::iterator it = vertex_attrib_managers_.find(client_id);
- return it != vertex_attrib_managers_.end() ? it->second : NULL;
-}
-
-void VertexArrayManager::RemoveVertexAttribManager(GLuint client_id) {
- VertexAttribManagerMap::iterator it = vertex_attrib_managers_.find(client_id);
+ return .get()p::iterator it = vertex_attrib_managers_.find(client_id);
if (it != vertex_attrib_managers_.end()) {
- VertexAttribManager* vertex_attrib_manager = it->second;
+ VertexAttribManager* vertex_attrib_manager = it->second.get();
vertex_attrib_manager->MarkAsDeleted();
vertex_attrib_managers_.erase(it);
}
« no previous file with comments | « gpu/command_buffer/service/texture_manager.h ('k') | gpu/command_buffer/service/vertex_attrib_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698