diff options
Diffstat (limited to 'gpu/command_buffer/service/renderbuffer_manager.cc')
-rw-r--r-- | gpu/command_buffer/service/renderbuffer_manager.cc | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/gpu/command_buffer/service/renderbuffer_manager.cc b/gpu/command_buffer/service/renderbuffer_manager.cc index 0b5441d..fe07d01 100644 --- a/gpu/command_buffer/service/renderbuffer_manager.cc +++ b/gpu/command_buffer/service/renderbuffer_manager.cc @@ -10,26 +10,27 @@ namespace gpu { namespace gles2 { -void RenderbufferManager::CreateRenderbufferInfo(GLuint renderbuffer_id) { +void RenderbufferManager::CreateRenderbufferInfo( + GLuint client_id, GLuint service_id) { std::pair<RenderbufferInfoMap::iterator, bool> result = renderbuffer_infos_.insert( std::make_pair( - renderbuffer_id, - RenderbufferInfo::Ref(new RenderbufferInfo(renderbuffer_id)))); + client_id, + RenderbufferInfo::Ref(new RenderbufferInfo(service_id)))); DCHECK(result.second); } RenderbufferManager::RenderbufferInfo* RenderbufferManager::GetRenderbufferInfo( - GLuint renderbuffer_id) { - RenderbufferInfoMap::iterator it = renderbuffer_infos_.find(renderbuffer_id); + GLuint client_id) { + RenderbufferInfoMap::iterator it = renderbuffer_infos_.find(client_id); return it != renderbuffer_infos_.end() ? it->second : NULL; } -void RenderbufferManager::RemoveRenderbufferInfo(GLuint renderbuffer_id) { - RenderbufferInfoMap::iterator it = renderbuffer_infos_.find(renderbuffer_id); +void RenderbufferManager::RemoveRenderbufferInfo(GLuint client_id) { + RenderbufferInfoMap::iterator it = renderbuffer_infos_.find(client_id); if (it != renderbuffer_infos_.end()) { it->second->MarkAsDeleted(); - renderbuffer_infos_.erase(renderbuffer_id); + renderbuffer_infos_.erase(it); } } |