commit | 30e6343b35c815b58fd8e2b1cd7cb584d13f159c | [log] [tgz] |
---|---|---|
author | Ethan Nicholas <ethannicholas@google.com> | Tue Dec 11 16:15:15 2018 -0500 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Tue Dec 11 21:43:13 2018 +0000 |
tree | 5417de840cc7bead788e9325dacab4c01d12c641 | |
parent | b41321b584d04fb6caf0104c1ecb935f59e72093 [diff] [blame] |
Perform Vulkan resets in a background thread Bug: skia: Change-Id: I90783dc9ac2fcae560cd54e6c8c6df11d7195ac0 Reviewed-on: https://skia-review.googlesource.com/c/168488 Commit-Queue: Ethan Nicholas <ethannicholas@google.com> Reviewed-by: Greg Daniel <egdaniel@google.com>
diff --git a/src/gpu/vk/GrVkPipelineState.cpp b/src/gpu/vk/GrVkPipelineState.cpp index 9f18b1a..c639377 100644 --- a/src/gpu/vk/GrVkPipelineState.cpp +++ b/src/gpu/vk/GrVkPipelineState.cpp
@@ -75,7 +75,7 @@ SkASSERT(!fPipelineLayout); } -void GrVkPipelineState::freeGPUResources(const GrVkGpu* gpu) { +void GrVkPipelineState::freeGPUResources(GrVkGpu* gpu) { if (fPipeline) { fPipeline->unref(gpu); fPipeline = nullptr;