BUG=skia:
Change-Id: Ia32bd6654fb3f5371d8109e04464e1932d4bab52
Reviewed-on: https://skia-review.googlesource.com/11120
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Greg Daniel <egdaniel@google.com>
if (fMSAAImage) {
fMSAAImage->releaseImage(gpu);
- fMSAAImage = nullptr;
+ fMSAAImage.reset();
}
if (fResolveAttachmentView) {
void GrVkRenderTarget::abandonInternalObjects() {
if (fMSAAImage) {
fMSAAImage->abandonImage();
- fMSAAImage = nullptr;
+ fMSAAImage.reset();
}
if (fResolveAttachmentView) {
}
return nullptr;
}
- GrVkImage* msaaImage() { return fMSAAImage; }
+ GrVkImage* msaaImage() { return fMSAAImage.get(); }
const GrVkImageView* resolveAttachmentView() const { return fResolveAttachmentView; }
const GrVkResource* stencilImageResource() const;
const GrVkImageView* stencilAttachmentView() const;
void createFramebuffer(GrVkGpu* gpu);
const GrVkImageView* fColorAttachmentView;
- GrVkImage* fMSAAImage;
+ std::unique_ptr<GrVkImage> fMSAAImage;
const GrVkImageView* fResolveAttachmentView;
private: