| Index: src/gpu/vk/GrVkGpu.cpp
|
| diff --git a/src/gpu/vk/GrVkGpu.cpp b/src/gpu/vk/GrVkGpu.cpp
|
| index 428c2ff6bd363ad52b779cba73d3fe1480de1b8c..280346fda1cf75733b0733d0c5e713d8aea03052 100644
|
| --- a/src/gpu/vk/GrVkGpu.cpp
|
| +++ b/src/gpu/vk/GrVkGpu.cpp
|
| @@ -63,10 +63,10 @@ VKAPI_ATTR VkBool32 VKAPI_CALL DebugReportCallback(
|
|
|
| GrGpu* GrVkGpu::Create(GrBackendContext backendContext, const GrContextOptions& options,
|
| GrContext* context) {
|
| - SkAutoTUnref<const GrVkBackendContext> vkBackendContext(
|
| - reinterpret_cast<const GrVkBackendContext*>(backendContext));
|
| + const GrVkBackendContext* vkBackendContext =
|
| + reinterpret_cast<const GrVkBackendContext*>(backendContext);
|
| if (!vkBackendContext) {
|
| - vkBackendContext.reset(GrVkBackendContext::Create());
|
| + vkBackendContext = GrVkBackendContext::Create();
|
| if (!vkBackendContext) {
|
| return nullptr;
|
| }
|
|
|