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_unittest.cc | |
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_unittest.cc')
-rw-r--r-- | gpu/command_buffer/service/program_cache_unittest.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gpu/command_buffer/service/program_cache_unittest.cc b/gpu/command_buffer/service/program_cache_unittest.cc index 65f39be..46a2fe1 100644 --- a/gpu/command_buffer/service/program_cache_unittest.cc +++ b/gpu/command_buffer/service/program_cache_unittest.cc @@ -16,7 +16,8 @@ class NoBackendProgramCache : public ProgramCache { GLuint /* program */, Shader* /* shader_a */, Shader* /* shader_b */, - const LocationMap* /* bind_attrib_location_map */) const OVERRIDE { + const LocationMap* /* bind_attrib_location_map */, + const ShaderCacheCallback& /* callback */) const OVERRIDE { return PROGRAM_LOAD_SUCCESS; } virtual void SaveLinkedProgram( |