Index: src/gpu/vk/GrVkRenderPass.cpp |
diff --git a/src/gpu/vk/GrVkRenderPass.cpp b/src/gpu/vk/GrVkRenderPass.cpp |
index 84c9c521ccfd00bb50baba7c4403ef41cee4d5a4..0fc0d5b0f810e7000a17c36bca8593a013663cac 100644 |
--- a/src/gpu/vk/GrVkRenderPass.cpp |
+++ b/src/gpu/vk/GrVkRenderPass.cpp |
@@ -232,11 +232,8 @@ void GrVkRenderPass::getBeginInfo(const GrVkRenderTarget& target, |
*contents = VK_SUBPASS_CONTENTS_INLINE; |
} |
-bool GrVkRenderPass::isCompatible(const GrVkRenderTarget& target) const { |
- AttachmentsDescriptor desc; |
- AttachmentFlags flags; |
- target.getAttachmentsDescriptor(&desc, &flags); |
- |
+bool GrVkRenderPass::isCompatible(const AttachmentsDescriptor& desc, |
+ const AttachmentFlags& flags) const { |
if (flags != fAttachmentFlags) { |
return false; |
} |
@@ -260,6 +257,18 @@ bool GrVkRenderPass::isCompatible(const GrVkRenderTarget& target) const { |
return true; |
} |
+bool GrVkRenderPass::isCompatible(const GrVkRenderTarget& target) const { |
+ AttachmentsDescriptor desc; |
+ AttachmentFlags flags; |
+ target.getAttachmentsDescriptor(&desc, &flags); |
+ |
+ return this->isCompatible(desc, flags); |
+} |
+ |
+bool GrVkRenderPass::isCompatible(const GrVkRenderPass& renderPass) const { |
+ return this->isCompatible(renderPass.fAttachmentsDescriptor, renderPass.fAttachmentFlags); |
+} |
+ |
bool GrVkRenderPass::equalLoadStoreOps(const LoadStoreOps& colorOps, |
const LoadStoreOps& resolveOps, |
const LoadStoreOps& stencilOps) const { |