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

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

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.h
===================================================================
--- gpu/command_buffer/service/renderbuffer_manager.h (revision 45605)
+++ gpu/command_buffer/service/renderbuffer_manager.h (working copy)
@@ -24,13 +24,13 @@
public:
typedef scoped_refptr<RenderbufferInfo> Ref;
- explicit RenderbufferInfo(GLuint renderbuffer_id)
- : renderbuffer_id_(renderbuffer_id),
+ explicit RenderbufferInfo(GLuint service_id)
+ : service_id_(service_id),
cleared_(false) {
}
- GLuint renderbuffer_id() const {
- return renderbuffer_id_;
+ GLuint service_id() const {
+ return service_id_;
}
bool cleared() const {
@@ -42,7 +42,7 @@
}
bool IsDeleted() {
- return renderbuffer_id_ == 0;
+ return service_id_ == 0;
}
private:
@@ -52,11 +52,11 @@
~RenderbufferInfo() { }
void MarkAsDeleted() {
- renderbuffer_id_ = 0;
+ service_id_ = 0;
}
// Service side renderbuffer id.
- GLuint renderbuffer_id_;
+ GLuint service_id_;
// Whether this renderbuffer has been cleared
bool cleared_;
@@ -65,13 +65,13 @@
RenderbufferManager() { }
// Creates a RenderbufferInfo for the given renderbuffer.
- void CreateRenderbufferInfo(GLuint renderbuffer_id);
+ void CreateRenderbufferInfo(GLuint client_id, GLuint service_id);
// Gets the renderbuffer info for the given renderbuffer.
- RenderbufferInfo* GetRenderbufferInfo(GLuint renderbuffer_id);
+ RenderbufferInfo* GetRenderbufferInfo(GLuint client_id);
// Removes a renderbuffer info for the given renderbuffer.
- void RemoveRenderbufferInfo(GLuint renderbuffer_id);
+ void RemoveRenderbufferInfo(GLuint client_id);
private:
// Info for each renderbuffer in the system.
« no previous file with comments | « gpu/command_buffer/service/program_manager_unittest.cc ('k') | gpu/command_buffer/service/renderbuffer_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698