Hoist color space xform creation out of GrTextureProducer
Bug: skia:
Change-Id: I3f43d7c7277758d8ceec7f3263d94df63cb12d8a
Reviewed-on: https://skia-review.googlesource.com/c/164441
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
diff --git a/src/gpu/GrTextureAdjuster.cpp b/src/gpu/GrTextureAdjuster.cpp
index affd8a5..8bbcd52 100644
--- a/src/gpu/GrTextureAdjuster.cpp
+++ b/src/gpu/GrTextureAdjuster.cpp
@@ -114,8 +114,7 @@
const SkRect& constraintRect,
FilterConstraint filterConstraint,
bool coordsLimitedToConstraintRect,
- const GrSamplerState::Filter* filterOrNullForBicubic,
- SkColorSpace* dstColorSpace) {
+ const GrSamplerState::Filter* filterOrNullForBicubic) {
SkMatrix textureMatrix = origTextureMatrix;
SkRect domain;
@@ -154,7 +153,6 @@
}
SkASSERT(kNoDomain_DomainMode == domainMode ||
(domain.fLeft <= domain.fRight && domain.fTop <= domain.fBottom));
- auto fp = CreateFragmentProcessorForDomainAndFilter(std::move(proxy), textureMatrix,
- domainMode, domain, filterOrNullForBicubic);
- return GrColorSpaceXformEffect::Make(std::move(fp), fColorSpace, fAlphaType, dstColorSpace);
+ return CreateFragmentProcessorForDomainAndFilter(std::move(proxy), textureMatrix, domainMode,
+ domain, filterOrNullForBicubic);
}