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

Unified Diff: gpu/command_buffer/client/gles2_implementation_autogen.h

Issue 7358006: Cache OpenGL program info on the client side of the command buffer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix warnings Created 9 years, 5 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/client/gles2_implementation_autogen.h
diff --git a/gpu/command_buffer/client/gles2_implementation_autogen.h b/gpu/command_buffer/client/gles2_implementation_autogen.h
index 270d3032806a3b2db9a11b87374be43fe3225df0..feeb1f4951e55c652a53d8b74a6edeee12317261 100644
--- a/gpu/command_buffer/client/gles2_implementation_autogen.h
+++ b/gpu/command_buffer/client/gles2_implementation_autogen.h
@@ -247,7 +247,7 @@ void DeleteFramebuffers(GLsizei n, const GLuint* framebuffers) {
void DeleteProgram(GLuint program) {
GPU_CLIENT_LOG("[" << this << "] glDeleteProgram(" << program << ")");
GPU_CLIENT_DCHECK(program != 0);
- program_and_shader_id_handler_->FreeIds(1, &program);
+ DeleteProgramOrShaderHelper(program);
helper_->DeleteProgram(program);
}
@@ -274,7 +274,7 @@ void DeleteRenderbuffers(GLsizei n, const GLuint* renderbuffers) {
void DeleteShader(GLuint shader) {
GPU_CLIENT_LOG("[" << this << "] glDeleteShader(" << shader << ")");
GPU_CLIENT_DCHECK(shader != 0);
- program_and_shader_id_handler_->FreeIds(1, &shader);
+ DeleteProgramOrShaderHelper(shader);
helper_->DeleteShader(shader);
}
@@ -803,10 +803,7 @@ void LineWidth(GLfloat width) {
helper_->LineWidth(width);
}
-void LinkProgram(GLuint program) {
- GPU_CLIENT_LOG("[" << this << "] glLinkProgram(" << program << ")");
- helper_->LinkProgram(program);
-}
+void LinkProgram(GLuint program);
void PixelStorei(GLenum pname, GLint param);

Powered by Google App Engine
This is Rietveld 408576698