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

Unified Diff: gpu/command_buffer/service/framebuffer_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/framebuffer_manager.cc
===================================================================
--- gpu/command_buffer/service/framebuffer_manager.cc (revision 45605)
+++ gpu/command_buffer/service/framebuffer_manager.cc (working copy)
@@ -9,26 +9,27 @@
namespace gpu {
namespace gles2 {
-void FramebufferManager::CreateFramebufferInfo(GLuint framebuffer_id) {
+void FramebufferManager::CreateFramebufferInfo(
+ GLuint client_id, GLuint service_id) {
std::pair<FramebufferInfoMap::iterator, bool> result =
framebuffer_infos_.insert(
std::make_pair(
- framebuffer_id,
- FramebufferInfo::Ref(new FramebufferInfo(framebuffer_id))));
+ client_id,
+ FramebufferInfo::Ref(new FramebufferInfo(service_id))));
DCHECK(result.second);
}
FramebufferManager::FramebufferInfo* FramebufferManager::GetFramebufferInfo(
- GLuint framebuffer_id) {
- FramebufferInfoMap::iterator it = framebuffer_infos_.find(framebuffer_id);
+ GLuint client_id) {
+ FramebufferInfoMap::iterator it = framebuffer_infos_.find(client_id);
return it != framebuffer_infos_.end() ? it->second : NULL;
}
-void FramebufferManager::RemoveFramebufferInfo(GLuint framebuffer_id) {
- FramebufferInfoMap::iterator it = framebuffer_infos_.find(framebuffer_id);
+void FramebufferManager::RemoveFramebufferInfo(GLuint client_id) {
+ FramebufferInfoMap::iterator it = framebuffer_infos_.find(client_id);
if (it != framebuffer_infos_.end()) {
it->second->MarkAsDeleted();
- framebuffer_infos_.erase(framebuffer_id);
+ framebuffer_infos_.erase(it);
}
}
« no previous file with comments | « gpu/command_buffer/service/framebuffer_manager.h ('k') | gpu/command_buffer/service/framebuffer_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698