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

Unified Diff: gpu/command_buffer/client/gles2_implementation.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.h
diff --git a/gpu/command_buffer/client/gles2_implementation.h b/gpu/command_buffer/client/gles2_implementation.h
index d7b955e5a51a04d6ce21cb924e736a78efc7766f..e370310eaa91c1c2ef1d7e2f93f3424df371b492 100644
--- a/gpu/command_buffer/client/gles2_implementation.h
+++ b/gpu/command_buffer/client/gles2_implementation.h
@@ -75,6 +75,7 @@ class MappedMemoryManager;
namespace gles2 {
class ClientSideBufferHelper;
+class ProgramInfoManager;
// Base class for IdHandlers
class IdHandlerInterface {
@@ -175,6 +176,17 @@ class GLES2Implementation {
void GetVertexAttribfv(GLuint index, GLenum pname, GLfloat* params);
void GetVertexAttribiv(GLuint index, GLenum pname, GLint* params);
+ void GetProgramInfoCHROMIUMHelper(GLuint program, std::vector<int8>* result);
+ void DeleteProgramOrShaderHelper(GLuint program_or_shader);
+ GLint GetAttribLocationHelper(GLuint program, const char* name);
+ GLint GetUniformLocationHelper(GLuint program, const char* name);
+ bool GetActiveAttribHelper(
+ GLuint program, GLuint index, GLsizei bufsize, GLsizei* length,
+ GLint* size, GLenum* type, char* name);
+ bool GetActiveUniformHelper(
+ GLuint program, GLuint index, GLsizei bufsize, GLsizei* length,
+ GLint* size, GLenum* type, char* name);
+
GLuint MakeTextureId() {
GLuint id;
texture_id_handler_->MakeIds(0, 1, &id);
@@ -473,6 +485,8 @@ class GLES2Implementation {
scoped_ptr<MappedMemoryManager> mapped_memory_;
+ scoped_ptr<ProgramInfoManager> program_info_manager_;
+
DISALLOW_COPY_AND_ASSIGN(GLES2Implementation);
};
@@ -489,11 +503,6 @@ inline bool GLES2Implementation::GetFramebufferAttachmentParameterivHelper(
return false;
}
-inline bool GLES2Implementation::GetProgramivHelper(
- GLuint /* program */, GLenum /* pname */, GLint* /* params */) {
- return false;
-}
-
inline bool GLES2Implementation::GetRenderbufferParameterivHelper(
GLenum /* target */, GLenum /* pname */, GLint* /* params */) {
return false;

Powered by Google App Engine
This is Rietveld 408576698