Index: src/gpu/effects/GrSingleTextureEffect.cpp |
diff --git a/src/gpu/effects/GrSingleTextureEffect.cpp b/src/gpu/effects/GrSingleTextureEffect.cpp |
index c291735c0d781c39e7caddadeda85814ec1e436d..c84e95ed0a7e4fe918bf5de85b0b3ca7d19531de 100644 |
--- a/src/gpu/effects/GrSingleTextureEffect.cpp |
+++ b/src/gpu/effects/GrSingleTextureEffect.cpp |
@@ -8,30 +8,36 @@ |
#include "effects/GrSingleTextureEffect.h" |
GrSingleTextureEffect::GrSingleTextureEffect(GrTexture* texture, |
+ sk_sp<GrColorSpaceXform> colorSpaceXform, |
const SkMatrix& m, |
GrCoordSet coordSet) |
: fCoordTransform(coordSet, m, texture, GrTextureParams::kNone_FilterMode) |
- , fTextureAccess(texture) { |
+ , fTextureAccess(texture) |
+ , fColorSpaceXform(std::move(colorSpaceXform)) { |
this->addCoordTransform(&fCoordTransform); |
this->addTextureAccess(&fTextureAccess); |
} |
GrSingleTextureEffect::GrSingleTextureEffect(GrTexture* texture, |
+ sk_sp<GrColorSpaceXform> colorSpaceXform, |
const SkMatrix& m, |
GrTextureParams::FilterMode filterMode, |
GrCoordSet coordSet) |
: fCoordTransform(coordSet, m, texture, filterMode) |
- , fTextureAccess(texture, filterMode) { |
+ , fTextureAccess(texture, filterMode) |
+ , fColorSpaceXform(std::move(colorSpaceXform)) { |
this->addCoordTransform(&fCoordTransform); |
this->addTextureAccess(&fTextureAccess); |
} |
GrSingleTextureEffect::GrSingleTextureEffect(GrTexture* texture, |
+ sk_sp<GrColorSpaceXform> colorSpaceXform, |
const SkMatrix& m, |
const GrTextureParams& params, |
GrCoordSet coordSet) |
: fCoordTransform(coordSet, m, texture, params.filterMode()) |
- , fTextureAccess(texture, params) { |
+ , fTextureAccess(texture, params) |
+ , fColorSpaceXform(std::move(colorSpaceXform)) { |
this->addCoordTransform(&fCoordTransform); |
this->addTextureAccess(&fTextureAccess); |
} |