Remove outputSwizzle from GrRenderTargetProxy.
Bug: skia:9556
Change-Id: Icbcc56c0eb0d0de0886874e0ed8c3f03c7318d02
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/249883
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Greg Daniel <egdaniel@google.com>
diff --git a/src/gpu/GrRenderTargetProxy.cpp b/src/gpu/GrRenderTargetProxy.cpp
index c3c92e8..fa7f669 100644
--- a/src/gpu/GrRenderTargetProxy.cpp
+++ b/src/gpu/GrRenderTargetProxy.cpp
@@ -27,7 +27,6 @@
int sampleCount,
GrSurfaceOrigin origin,
const GrSwizzle& textureSwizzle,
- const GrSwizzle& outputSwizzle,
SkBackingFit fit,
SkBudgeted budgeted,
GrProtected isProtected,
@@ -36,8 +35,7 @@
: INHERITED(format, desc, GrRenderable::kYes, origin, textureSwizzle, fit, budgeted,
isProtected, surfaceFlags, useAllocator)
, fSampleCnt(sampleCount)
- , fWrapsVkSecondaryCB(WrapsVkSecondaryCB::kNo)
- , fOutputSwizzle(outputSwizzle) {}
+ , fWrapsVkSecondaryCB(WrapsVkSecondaryCB::kNo) {}
// Lazy-callback version
GrRenderTargetProxy::GrRenderTargetProxy(LazyInstantiateCallback&& callback,
@@ -46,7 +44,6 @@
int sampleCount,
GrSurfaceOrigin origin,
const GrSwizzle& textureSwizzle,
- const GrSwizzle& outputSwizzle,
SkBackingFit fit,
SkBudgeted budgeted,
GrProtected isProtected,
@@ -56,20 +53,17 @@
: INHERITED(std::move(callback), format, desc, GrRenderable::kYes, origin, textureSwizzle,
fit, budgeted, isProtected, surfaceFlags, useAllocator)
, fSampleCnt(sampleCount)
- , fWrapsVkSecondaryCB(wrapsVkSecondaryCB)
- , fOutputSwizzle(outputSwizzle) {}
+ , fWrapsVkSecondaryCB(wrapsVkSecondaryCB) {}
// Wrapped version
GrRenderTargetProxy::GrRenderTargetProxy(sk_sp<GrSurface> surf,
GrSurfaceOrigin origin,
const GrSwizzle& textureSwizzle,
- const GrSwizzle& outputSwizzle,
UseAllocator useAllocator,
WrapsVkSecondaryCB wrapsVkSecondaryCB)
: INHERITED(std::move(surf), origin, textureSwizzle, SkBackingFit::kExact, useAllocator)
, fSampleCnt(fTarget->asRenderTarget()->numSamples())
- , fWrapsVkSecondaryCB(wrapsVkSecondaryCB)
- , fOutputSwizzle(outputSwizzle) {
+ , fWrapsVkSecondaryCB(wrapsVkSecondaryCB) {
// The kRequiresManualMSAAResolve flag better not be set if we are not multisampled or if
// MSAA resolve should happen automatically.
//