Remove duplicate member of GrVkDrawableInfo struct.
Bug: skia: Change-Id: I81a38f9920f89f4749fc58458b85a29714cec7a9 Reviewed-on: https://skia-review.googlesource.com/c/174584 Reviewed-by: Robert Phillips <robertphillips@google.com> Commit-Queue: Greg Daniel <egdaniel@google.com>
This commit is contained in:
parent
0f9d33ef06
commit
b353eeb716
@ -217,7 +217,6 @@ struct GrVkDrawableInfo {
|
||||
VkCommandBuffer fSecondaryCommandBuffer;
|
||||
uint32_t fColorAttachmentIndex;
|
||||
VkRenderPass fCompatibleRenderPass;
|
||||
uint32_t fImageAttachmentIndex;
|
||||
VkFormat fFormat;
|
||||
VkRect2D* fDrawBounds;
|
||||
};
|
||||
|
@ -802,7 +802,7 @@ void GrVkGpuRTCommandBuffer::executeDrawable(std::unique_ptr<SkDrawable::GpuDraw
|
||||
GrVkDrawableInfo vkInfo;
|
||||
vkInfo.fSecondaryCommandBuffer = cbInfo.currentCmdBuf()->vkCommandBuffer();
|
||||
vkInfo.fCompatibleRenderPass = cbInfo.fRenderPass->vkRenderPass();
|
||||
SkAssertResult(cbInfo.fRenderPass->colorAttachmentIndex(&vkInfo.fImageAttachmentIndex));
|
||||
SkAssertResult(cbInfo.fRenderPass->colorAttachmentIndex(&vkInfo.fColorAttachmentIndex));
|
||||
vkInfo.fFormat = targetImage->imageFormat();
|
||||
vkInfo.fDrawBounds = &bounds;
|
||||
|
||||
|
@ -67,7 +67,7 @@ public:
|
||||
|
||||
VkClearAttachment attachment;
|
||||
attachment.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT;
|
||||
attachment.colorAttachment = vkInfo.fImageAttachmentIndex;
|
||||
attachment.colorAttachment = vkInfo.fColorAttachmentIndex;
|
||||
attachment.clearValue.color = vkColor;
|
||||
|
||||
GR_VK_CALL(fInterface, CmdClearAttachments(vkInfo.fSecondaryCommandBuffer,
|
||||
|
Loading…
Reference in New Issue
Block a user