Use sk_sp for GrVkPipeline.
Change-Id: I758e4aefb42d5e05071c528cf68c716739e32f3e
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/350020
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Greg Daniel <egdaniel@google.com>
diff --git a/src/gpu/vk/GrVkPipelineState.h b/src/gpu/vk/GrVkPipelineState.h
index 036366a..95788cf 100644
--- a/src/gpu/vk/GrVkPipelineState.h
+++ b/src/gpu/vk/GrVkPipelineState.h
@@ -40,7 +40,7 @@
GrVkPipelineState(
GrVkGpu* gpu,
- GrVkPipeline* pipeline,
+ sk_sp<const GrVkPipeline> pipeline,
const GrVkDescriptorSetManager::Handle& samplerDSHandle,
const GrGLSLBuiltinUniformHandles& builtinUniformHandles,
const UniformInfoArray& uniforms,
@@ -109,7 +109,7 @@
void setRenderTargetState(const GrRenderTarget*, GrSurfaceOrigin);
// GrManagedResources
- GrVkPipeline* fPipeline;
+ sk_sp<const GrVkPipeline> fPipeline;
const GrVkDescriptorSetManager::Handle fSamplerDSHandle;