commit | fe170d28d722f29ada5f1e2c6069e7d24e6a4b84 | [log] [tgz] |
---|---|---|
author | jvanverth <jvanverth@google.com> | Tue Mar 22 13:15:44 2016 -0700 |
committer | Commit bot <commit-bot@chromium.org> | Tue Mar 22 13:15:44 2016 -0700 |
tree | 4b52f1a61767c629ce0a69ddfd17cbe3f23607f2 | |
parent | bee39c5fbe22704825a2462552f81c0630735ff3 [diff] |
Fix borrowed GrVkImage::Resource. With the current system, if we wrap a given GrVkTextureInfo*, add a command using it to the command buffer, then delete the texture, the command buffer will unref the GrVkImage::Resource when it's done, which will delete the VkImage and VkDeviceMemory. This subclasses GrVkImage::Resource for those cases, and will not delete the data on an unref. GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1824123002 Review URL: https://codereview.chromium.org/1824123002