SkTDynamicHash: pick up GetKey(), Hash() from T by default.
authorcommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Wed, 2 Apr 2014 19:17:00 +0000 (19:17 +0000)
committercommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Wed, 2 Apr 2014 19:17:00 +0000 (19:17 +0000)
commit55bd940446506f8409f38271f2e4969e9b4f3991
tree005a772ed59f1c601a4c45a8e4c14dca67961b97
parent158f64626f8dae7e8437744184860d0110b88609
SkTDynamicHash: pick up GetKey(), Hash() from T by default.

This also has a somewhat obscure technical benefit: it removes the
requirement that GetKey() and Hash() must be functions with external
linkage, which is required when passing a function pointer to a
template.  A future CL that's run into this problem and the obvious
simplification are about 50/50 why I'm sending this CL.

BUG=skia:
DIFFBASE= https://codereview.chromium.org/222343002/
R=bsalomon@google.com, mtklein@google.com

Author: mtklein@chromium.org

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

git-svn-id: http://skia.googlecode.com/svn/trunk@14028 2bbb7eff-a529-9590-31e7-b0007b416f81
src/core/SkPictureFlat.h
src/core/SkScaledImageCache.cpp
src/core/SkTDynamicHash.h
src/gpu/GrResourceCache.h
src/gpu/GrTMultiMap.h
tests/DynamicHashTest.cpp