diff options
author | dsinclair@chromium.org <dsinclair@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-11 01:58:44 +0000 |
---|---|---|
committer | dsinclair@chromium.org <dsinclair@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-11 01:58:44 +0000 |
commit | f1f4dd5f454c1ea1c4e942ea8387a92455d49218 (patch) | |
tree | 19b0795463fca17856ab412aae0cefa9d1da1457 /gpu/command_buffer/service/program_cache.h | |
parent | f386bb5b7433903e3e105c7725906366f4a85559 (diff) | |
download | chromium_src-f1f4dd5f454c1ea1c4e942ea8387a92455d49218.zip chromium_src-f1f4dd5f454c1ea1c4e942ea8387a92455d49218.tar.gz chromium_src-f1f4dd5f454c1ea1c4e942ea8387a92455d49218.tar.bz2 |
Send shader information to disk cache on access as well as create.
Currently we send the shader information to the disk cache when the
shader is first saved. This patch also sends the shaders when we
read them from the memory cache. This allows us to use the
LRU capabilities of the shader cache and re-cache any shaders
if the disk cache has been cleared.
BUG=226998
Review URL: https://chromiumcodereview.appspot.com/13722006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@193538 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/command_buffer/service/program_cache.h')
-rw-r--r-- | gpu/command_buffer/service/program_cache.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gpu/command_buffer/service/program_cache.h b/gpu/command_buffer/service/program_cache.h index e7057e5..c4b50e8 100644 --- a/gpu/command_buffer/service/program_cache.h +++ b/gpu/command_buffer/service/program_cache.h @@ -60,7 +60,8 @@ class GPU_EXPORT ProgramCache { GLuint program, Shader* shader_a, Shader* shader_b, - const LocationMap* bind_attrib_location_map) const = 0; + const LocationMap* bind_attrib_location_map, + const ShaderCacheCallback& shader_callback) const = 0; // Saves the program into the cache. If successful, the implementation should // call LinkedProgramCacheSuccess. |