Speed up GrResourceCache add and lookup by using TDynamicHash
authorcommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 17 Jan 2014 17:56:21 +0000 (17:56 +0000)
committercommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 17 Jan 2014 17:56:21 +0000 (17:56 +0000)
commitbd58febffb103ea830bf027c5a95313548f7ea8e
treea989511cd46f3f54cdeb3e86a3ac9d20e35dd066
parentcd0bf0adaa7adc24f79834e1b36884b72e64dbcc
Speed up GrResourceCache add and lookup by using TDynamicHash

Speed up GrResourceCache add and lookup by using TDynamicHash instead
of GrTHashTable. GrTHashTable spends most of its time memmoving the
array elements while sorting after an add. Lookup is not particularly
fast either.

R=mtklein@google.com, bsalomon@google.com, reed@google.com

Author: kkinnunen@nvidia.com

Review URL: https://codereview.chromium.org/91453002

git-svn-id: http://skia.googlecode.com/svn/trunk@13122 2bbb7eff-a529-9590-31e7-b0007b416f81
src/gpu/GrResourceCache.cpp
src/gpu/GrResourceCache.h
src/gpu/GrTMultiMap.h [new file with mode: 0644]
tests/ResourceCacheTest.cpp