summaryrefslogtreecommitdiffstats
path: root/gpu/command_buffer/service/program_cache.h
diff options
context:
space:
mode:
authorapatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-03 07:53:55 +0000
committerapatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-03 07:53:55 +0000
commit337e863bbc47e33ed8ed9f573c4d7850c4de5e49 (patch)
tree0a3d4784e09ee1890bcd580b06a7575ce47d49f9 /gpu/command_buffer/service/program_cache.h
parentc176932f0ab0936b088c9be5e298d20cd9c593a0 (diff)
downloadchromium_src-337e863bbc47e33ed8ed9f573c4d7850c4de5e49.zip
chromium_src-337e863bbc47e33ed8ed9f573c4d7850c4de5e49.tar.gz
chromium_src-337e863bbc47e33ed8ed9f573c4d7850c4de5e49.tar.bz2
MemoryProgramCache uses base::MRUCache instead of ProgramCacheLRUHelper.
Also make the accounting of curr_size_bytes_ easier to reason about. It is incremented in the ProgramCacheValue constructor and decremented in the destructor so that it is known to be equal to the total size of all cached values. BUG=262271 Review URL: https://chromiumcodereview.appspot.com/21676002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@215486 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/command_buffer/service/program_cache.h')
-rw-r--r--gpu/command_buffer/service/program_cache.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gpu/command_buffer/service/program_cache.h b/gpu/command_buffer/service/program_cache.h
index 9b28dd8..a8b9f91 100644
--- a/gpu/command_buffer/service/program_cache.h
+++ b/gpu/command_buffer/service/program_cache.h
@@ -68,7 +68,7 @@ class GPU_EXPORT ProgramCache {
Shader* shader_b,
const ShaderTranslatorInterface* translator_b,
const LocationMap* bind_attrib_location_map,
- const ShaderCacheCallback& shader_callback) const = 0;
+ const ShaderCacheCallback& shader_callback) = 0;
// Saves the program into the cache. If successful, the implementation should
// call LinkedProgramCacheSuccess.