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

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

Issue 1747013: Changes the code to use separate ids namspaces... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 8 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/renderbuffer_manager.cc
===================================================================
--- gpu/command_buffer/service/renderbuffer_manager.cc (revision 45605)
+++ gpu/command_buffer/service/renderbuffer_manager.cc (working copy)
@@ -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);
}
}
« no previous file with comments | « gpu/command_buffer/service/renderbuffer_manager.h ('k') | gpu/command_buffer/service/renderbuffer_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698