diff options
author | dmurph@chromium.org <dmurph@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-23 20:39:39 +0000 |
---|---|---|
committer | dmurph@chromium.org <dmurph@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-23 20:39:39 +0000 |
commit | 65dfc60d7035875767bcddf62b9201f16126222a (patch) | |
tree | 8de0b9f97b48112b08b544d142ca7a46ca016768 /gpu/command_buffer/service/mocks.cc | |
parent | 51383d802b69967b462bf2eabd1d7b1ee879d7f7 (diff) | |
download | chromium_src-65dfc60d7035875767bcddf62b9201f16126222a.zip chromium_src-65dfc60d7035875767bcddf62b9201f16126222a.tar.gz chromium_src-65dfc60d7035875767bcddf62b9201f16126222a.tar.bz2 |
gpu in-memory program cache implementation with a memory limit + lru eviction.
Wiring:
- Added bindings for glProgramBinary, glGetProgramBinary, glProgramParameteri
- Plumbed the shader cache from gl_channel_manager to program_manager
- Program cache creation after first context is created
Refactoring:
- moved DoCompile to ProgramManager
New:
- added functionality 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 and Link in ProgramMAnager
- MemoryProgramCache, the in-memory cache implementation
- ProgramCacheLruHelper, an O(1) lru implementation
Misc:
- A couple style fixes in modified files
Design doc: https://docs.google.com/document/d/1Vceem-nF4TCICoeGSh7OMXxfGuJEJYblGXRgN9V9hcE/edit
BUG=88572
Review URL: https://chromiumcodereview.appspot.com/10797055
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@147932 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/command_buffer/service/mocks.cc')
-rw-r--r-- | gpu/command_buffer/service/mocks.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gpu/command_buffer/service/mocks.cc b/gpu/command_buffer/service/mocks.cc index 46a8977..a71c019 100644 --- a/gpu/command_buffer/service/mocks.cc +++ b/gpu/command_buffer/service/mocks.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -33,5 +33,8 @@ MockShaderTranslator::MockShaderTranslator() {} MockShaderTranslator::~MockShaderTranslator() {} +MockProgramCache::MockProgramCache() {} +MockProgramCache::~MockProgramCache() {} + } // namespace gles2 } // namespace gpu |