Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(222)

Unified Diff: src/gpu/vk/GrVkRenderTarget.cpp

Issue 1977113002: Fix msaa on GrVkRenderTarget (Closed) Base URL: https://skia.googlesource.com/skia.git@backendTexture
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/vk/GrVkRenderTarget.cpp
diff --git a/src/gpu/vk/GrVkRenderTarget.cpp b/src/gpu/vk/GrVkRenderTarget.cpp
index 277448001e51c7930370088b13b1e8c015d62164..2c3ea4059f6004d0ff0a5b26a56d9c32aa2c5d22 100644
--- a/src/gpu/vk/GrVkRenderTarget.cpp
+++ b/src/gpu/vk/GrVkRenderTarget.cpp
@@ -35,7 +35,7 @@ GrVkRenderTarget::GrVkRenderTarget(GrVkGpu* gpu,
, GrRenderTarget(gpu, desc, kUnified_SampleConfig)
, fFramebuffer(nullptr)
, fColorAttachmentView(colorAttachmentView)
- , fMSAAImage(new GrVkImage(info, GrVkImage::kNot_Wrapped))
+ , fMSAAImage(new GrVkImage(msaaInfo, GrVkImage::kNot_Wrapped))
, fResolveAttachmentView(resolveAttachmentView)
, fCachedSimpleRenderPass(nullptr) {
SkASSERT(desc.fSampleCnt);
@@ -60,7 +60,7 @@ GrVkRenderTarget::GrVkRenderTarget(GrVkGpu* gpu,
, GrRenderTarget(gpu, desc, kUnified_SampleConfig)
, fFramebuffer(nullptr)
, fColorAttachmentView(colorAttachmentView)
- , fMSAAImage(new GrVkImage(info, GrVkImage::kNot_Wrapped))
+ , fMSAAImage(new GrVkImage(msaaInfo, GrVkImage::kNot_Wrapped))
, fResolveAttachmentView(resolveAttachmentView)
, fCachedSimpleRenderPass(nullptr) {
SkASSERT(desc.fSampleCnt);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698