Index: src/gpu/vk/GrVkRenderTarget.cpp |
diff --git a/src/gpu/vk/GrVkRenderTarget.cpp b/src/gpu/vk/GrVkRenderTarget.cpp |
index 83a4b44a59562e5d3fae11bc21260951dcb2f542..7a66d7ca93450045f7cd5176d79e77095c2d5eed 100644 |
--- a/src/gpu/vk/GrVkRenderTarget.cpp |
+++ b/src/gpu/vk/GrVkRenderTarget.cpp |
@@ -32,7 +32,7 @@ GrVkRenderTarget::GrVkRenderTarget(GrVkGpu* gpu, |
: GrSurface(gpu, desc) |
, GrVkImage(info, wrapped) |
// for the moment we only support 1:1 color to stencil |
- , GrRenderTarget(gpu, desc, kUnified_SampleConfig) |
+ , GrRenderTarget(gpu, desc, ComputeFlags(/*???*/)) |
, fColorAttachmentView(colorAttachmentView) |
, fMSAAImage(new GrVkImage(msaaInfo, GrVkImage::kNot_Wrapped)) |
, fResolveAttachmentView(resolveAttachmentView) |
@@ -57,7 +57,7 @@ GrVkRenderTarget::GrVkRenderTarget(GrVkGpu* gpu, |
: GrSurface(gpu, desc) |
, GrVkImage(info, wrapped) |
// for the moment we only support 1:1 color to stencil |
- , GrRenderTarget(gpu, desc, kUnified_SampleConfig) |
+ , GrRenderTarget(gpu, desc, ComputeFlags(/*???*/)) |
, fColorAttachmentView(colorAttachmentView) |
, fMSAAImage(new GrVkImage(msaaInfo, GrVkImage::kNot_Wrapped)) |
, fResolveAttachmentView(resolveAttachmentView) |
@@ -79,7 +79,7 @@ GrVkRenderTarget::GrVkRenderTarget(GrVkGpu* gpu, |
GrVkImage::Wrapped wrapped) |
: GrSurface(gpu, desc) |
, GrVkImage(info, wrapped) |
- , GrRenderTarget(gpu, desc, kUnified_SampleConfig) |
+ , GrRenderTarget(gpu, desc, ComputeFlags(/*???*/)) |
, fColorAttachmentView(colorAttachmentView) |
, fMSAAImage(nullptr) |
, fResolveAttachmentView(nullptr) |
@@ -100,7 +100,7 @@ GrVkRenderTarget::GrVkRenderTarget(GrVkGpu* gpu, |
GrVkImage::Wrapped wrapped) |
: GrSurface(gpu, desc) |
, GrVkImage(info, wrapped) |
- , GrRenderTarget(gpu, desc, kUnified_SampleConfig) |
+ , GrRenderTarget(gpu, desc, ComputeFlags(/*???*/)) |
, fColorAttachmentView(colorAttachmentView) |
, fMSAAImage(nullptr) |
, fResolveAttachmentView(nullptr) |
@@ -111,6 +111,10 @@ GrVkRenderTarget::GrVkRenderTarget(GrVkGpu* gpu, |
this->createFramebuffer(gpu); |
} |
+constexpr GrRenderTarget::Flags GrVkRenderTarget::ComputeFlags(/*???*/) { |
+ return true/*???*/ ? Flags::kOffscreen : Flags::kNone; |
csmartdalton
2016/08/09 06:52:58
Can we deduce here whether the RT is offscreen?
|
+} |
+ |
GrVkRenderTarget* |
GrVkRenderTarget::Create(GrVkGpu* gpu, |
SkBudgeted budgeted, |