Fix double deletion of DescriptorSetLayouts
authorJim Van Verth <jvanverth@google.com>
Thu, 17 Nov 2016 18:30:22 +0000 (13:30 -0500)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Thu, 17 Nov 2016 20:24:33 +0000 (20:24 +0000)
commit684d7cef02121a42e217c0f63bdb4799d9ae4b53
tree8a6532abca41a42e8d9c7771d0280910e3a5ea7a
parent297726f36fa766e1faec25330142e2a5b3ccdc5b
Fix double deletion of DescriptorSetLayouts

When VkPipeline creation fails the PipelineStateBuilder cleans up
afterwards. It was deleting the sampler DescriptorSetLayout when that
is owned by the ResourceProvider.

BUG=skia:

GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=4964

Change-Id: I876c570349f96f58e0256dc91bc1135c59a2058d
Reviewed-on: https://skia-review.googlesource.com/4964
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Jim Van Verth <jvanverth@google.com>
src/gpu/vk/GrVkPipelineStateBuilder.cpp