diff options
author | mtklein <mtklein@chromium.org> | 2015-05-06 07:40:25 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-05-06 07:40:26 -0700 |
commit | 0d992db1cf5003340409ed02993266004cc0a57c (patch) | |
tree | 86155d0c358e1fd5b8832846af244851bb93d4a1 /dm | |
parent | 444987fea8e6be1ff89ecce14ef0d934e7d3eb04 (diff) |
Make SkFunction copyable so it can go in containers.
This totally overhauls the implementation to use ordinary inheritance-based type erasure. I give up for now getting my manual vtable shenanigans to work with MSVC. Still those same "expected ; before ), also expected ) before ;" errors.
I added support for uninitialized SkFunctions and operator=(), because it was fairly straightforward with this implementation.
The main downside here is that I've removed the inline implementation. All SkFunctions involve a heap allocation, even when just wrapping function pointers.
BUG=skia:
Review URL: https://codereview.chromium.org/1056673002
Diffstat (limited to 'dm')
0 files changed, 0 insertions, 0 deletions