commit | 7b562291a7acb65e51ff12f69fef2848471d3456 | [log] [tgz] |
---|---|---|
author | Ben Wagner <bungeman@google.com> | Wed Sep 19 22:31:07 2018 -0400 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Fri Sep 21 15:35:29 2018 +0000 |
tree | d547292b2bdbae1ce66696b186ef94770b9a6f3d | |
parent | 9ea7682ba4dfa68d981f35903e5e0d4f009898e6 [diff] |
Use SkUniqueCFRef in SkImage*CG. This clarifies ownership and makes the code more readable. It is safe to use unique_ptr directly for UniqueCFRef, since unique_ptr does not call the deleter with nullptr. Change-Id: I4326a86059fb31488d1e163faca95a6c29960039 Reviewed-on: https://skia-review.googlesource.com/155612 Commit-Queue: Hal Canary <halcanary@google.com> Reviewed-by: Hal Canary <halcanary@google.com>