Change SkResourceCache to take a Visitor inside its find().
authorreed <reed@google.com>
Mon, 15 Sep 2014 13:44:47 +0000 (06:44 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 15 Sep 2014 13:44:47 +0000 (06:44 -0700)
commitdee6a8e67db39fcbde2b3bb09be1d088ebb9db8a
tree36e276101666865d5e06023b01f63affbf414afe
parent5087b2c06762d0ea8b471f63953a587ecafaae0f
Change SkResourceCache to take a Visitor inside its find().

This simplifies the API/contract, in that there are not any exposed
lock/unlock scopes.

patch from issue 572573002

BUG=skia:
R=mtklein@google.com, danakj@chromium.org

Author: reed@google.com

Review URL: https://codereview.chromium.org/567393002
bench/ImageCacheBench.cpp
src/core/SkBitmapCache.cpp
src/core/SkResourceCache.cpp
src/core/SkResourceCache.h
tests/ImageCacheTest.cpp