aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/GpuRectanizerTest.cpp
diff options
context:
space:
mode:
authorGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-05-29 18:29:48 +0000
committerGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-05-29 18:29:48 +0000
commitd3c6b3f1c89ad1336830957a1e9b235dd86910f2 (patch)
tree0945e97d54ddbf462b493aafd0e12f75d818a88e /tests/GpuRectanizerTest.cpp
parent448e2a3b3935d91e7bf84dc5b0367b92d2e2a518 (diff)
Tinker with SkLazyFnPtr a bit.
I moved the choice function from a get() arg to a template parameter. I think this removes some of the overemphasis on "choose" from the call site, making it a bit more clear it's normally very cheap. It's also now more in line with what I'm thinking now for the general SkLazyPtr<T>, which needs a "create" parameter just like SkLazyFnPtr's "choose", but also a "destroy" that it might use both in .get() but also at process exit. That "destroy" needs to be made part of the type to be called at exit, so might as well make "create" and "choose" template parameters too so it's all consistent. Also, add (C). BUG=skia: R=bungeman@google.com, mtklein@google.com Author: mtklein@chromium.org Review URL: https://codereview.chromium.org/298393005 git-svn-id: http://skia.googlecode.com/svn/trunk@14971 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tests/GpuRectanizerTest.cpp')
0 files changed, 0 insertions, 0 deletions