summaryrefslogtreecommitdiffstats
path: root/gpu/demos
diff options
context:
space:
mode:
authordmurph@chromium.org <dmurph@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-23 20:39:39 +0000
committerdmurph@chromium.org <dmurph@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-23 20:39:39 +0000
commit65dfc60d7035875767bcddf62b9201f16126222a (patch)
tree8de0b9f97b48112b08b544d142ca7a46ca016768 /gpu/demos
parent51383d802b69967b462bf2eabd1d7b1ee879d7f7 (diff)
downloadchromium_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/demos')
-rw-r--r--gpu/demos/framework/window.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/gpu/demos/framework/window.cc b/gpu/demos/framework/window.cc
index d30e427..1421aae 100644
--- a/gpu/demos/framework/window.cc
+++ b/gpu/demos/framework/window.cc
@@ -4,6 +4,8 @@
#include "gpu/demos/framework/window.h"
+#include <vector>
+
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/memory/ref_counted.h"