diff options
author | gman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-19 18:52:02 +0000 |
---|---|---|
committer | gman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-19 18:52:02 +0000 |
commit | 7f1a51c32f9c8c5a44118483c1255328d7983fce (patch) | |
tree | 5ca178adcc32507a067827922332f39c8bd64135 /ui/gl | |
parent | afaaacd757849f6f9117aa99bd582f52a152aa9c (diff) | |
download | chromium_src-7f1a51c32f9c8c5a44118483c1255328d7983fce.zip chromium_src-7f1a51c32f9c8c5a44118483c1255328d7983fce.tar.gz chromium_src-7f1a51c32f9c8c5a44118483c1255328d7983fce.tar.bz2 |
Revert 147328 - Current status of patch:
- In-memory cache
- maximum in memory limit (currently 6mb)
- lru eviction
- Cache includes saving the attribute + uniform mappings
Wiring:
- Added bindings for glProgramBinary and glGetProgramBinary
- Plumbed the shader cache from gl_channel_manager to program_manager
Refactoring:
- moved the meat of DoCompile to the ProgramManager
New:
- added field to ShaderInfo to store if we have a possible pending cache compile
- exposed attrib_map and uniform_map in ShaderInfo for the cache
- program_cache base class with in-memory status storage
- Simple memory_program_cache implementation, stores programs with lru eviction
- Added caching logic to DoCompileShader in gles2_cmd_decoder and Link in program_manager
Design doc: https://docs.google.com/document/d/1Vceem-nF4TCICoeGSh7OMXxfGuJEJYblGXRgN9V9hcE/edit
BUG=88572
Review URL: https://chromiumcodereview.appspot.com/10534173
TBR=dmurph@chromium.org
Review URL: https://chromiumcodereview.appspot.com/10795037
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@147497 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/gl')
-rwxr-xr-x | ui/gl/generate_bindings.py | 8 | ||||
-rw-r--r-- | ui/gl/gl_interface.h | 11 |
2 files changed, 0 insertions, 19 deletions
diff --git a/ui/gl/generate_bindings.py b/ui/gl/generate_bindings.py index 448d3a6..5e7eccd 100755 --- a/ui/gl/generate_bindings.py +++ b/ui/gl/generate_bindings.py @@ -296,10 +296,6 @@ GL_FUNCTIONS = [ 'names': ['glGetIntegerv'], 'arguments': 'GLenum pname, GLint* params', }, { 'return_type': 'void', - 'names': ['glGetProgramBinary', 'glGetProgramBinaryOES'], - 'arguments': 'GLuint program, GLsizei bufSize, GLsizei* length, ' - 'GLenum* binaryFormat, GLvoid* binary', }, -{ 'return_type': 'void', 'names': ['glGetProgramiv'], 'arguments': 'GLuint program, GLenum pname, GLint* params', }, { 'return_type': 'void', @@ -428,10 +424,6 @@ GL_FUNCTIONS = [ 'names': ['glPolygonOffset'], 'arguments': 'GLfloat factor, GLfloat units', }, { 'return_type': 'void', - 'names': ['glProgramBinary', 'glProgramBinaryOES'], - 'arguments': 'GLuint program, GLenum binaryFormat, ' - 'const GLvoid* binary, GLsizei length', }, -{ 'return_type': 'void', 'names': ['glQueryCounter'], 'arguments': 'GLuint id, GLenum target', }, { 'return_type': 'void', diff --git a/ui/gl/gl_interface.h b/ui/gl/gl_interface.h index 2cdf5ba..af150de 100644 --- a/ui/gl/gl_interface.h +++ b/ui/gl/gl_interface.h @@ -272,12 +272,6 @@ class GL_EXPORT GLInterface { virtual void GetIntegerv(GLenum pname, GLint* params) = 0; - virtual void GetProgramBinary(GLuint program, - GLsizei bufSize, - GLsizei* length, - GLenum* binaryFormat, - GLvoid* binary) = 0; - virtual void GetProgramiv(GLuint program, GLenum pname, GLint* params) = 0; // TODO(gman): Implement this @@ -404,11 +398,6 @@ class GL_EXPORT GLInterface { virtual void PolygonOffset(GLfloat factor, GLfloat units) = 0; - virtual void ProgramBinary(GLuint program, - GLenum binaryFormat, - const GLvoid* binary, - GLsizei length) = 0; - virtual void QueryCounter(GLuint id, GLenum target) = 0; virtual void ReadBuffer(GLenum src) = 0; |