| Index: src/gpu/vk/GrVkStencilAttachment.cpp
|
| diff --git a/src/gpu/vk/GrVkStencilAttachment.cpp b/src/gpu/vk/GrVkStencilAttachment.cpp
|
| index 97597fc5118e7e239b19c876a67b76cd2c7770b0..b3cd435405da7fa42d86875251264cb35537273d 100644
|
| --- a/src/gpu/vk/GrVkStencilAttachment.cpp
|
| +++ b/src/gpu/vk/GrVkStencilAttachment.cpp
|
| @@ -14,22 +14,20 @@
|
| #define VK_CALL(GPU, X) GR_VK_CALL(GPU->vkInterface(), X)
|
|
|
| GrVkStencilAttachment::GrVkStencilAttachment(GrVkGpu* gpu,
|
| - GrGpuResource::LifeCycle lifeCycle,
|
| const Format& format,
|
| const GrVkImage::ImageDesc& desc,
|
| const GrVkImage::Resource* imageResource,
|
| const GrVkImageView* stencilView)
|
| - : GrStencilAttachment(gpu, lifeCycle, desc.fWidth, desc.fHeight,
|
| + : GrStencilAttachment(gpu, desc.fWidth, desc.fHeight,
|
| format.fStencilBits, desc.fSamples)
|
| , GrVkImage(imageResource)
|
| , fFormat(format)
|
| , fStencilView(stencilView) {
|
| - this->registerWithCache();
|
| + this->registerWithCache(SkBudgeted::kYes);
|
| stencilView->ref();
|
| }
|
|
|
| GrVkStencilAttachment* GrVkStencilAttachment::Create(GrVkGpu* gpu,
|
| - GrGpuResource::LifeCycle lifeCycle,
|
| int width,
|
| int height,
|
| int sampleCnt,
|
| @@ -58,7 +56,7 @@ GrVkStencilAttachment* GrVkStencilAttachment::Create(GrVkGpu* gpu,
|
| return nullptr;
|
| }
|
|
|
| - GrVkStencilAttachment* stencil = new GrVkStencilAttachment(gpu, lifeCycle, format, imageDesc,
|
| + GrVkStencilAttachment* stencil = new GrVkStencilAttachment(gpu, format, imageDesc,
|
| imageResource, imageView);
|
| imageResource->unref(gpu);
|
| imageView->unref(gpu);
|
|
|