aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/ops/GrLatticeOp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpu/ops/GrLatticeOp.cpp')
-rw-r--r--src/gpu/ops/GrLatticeOp.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gpu/ops/GrLatticeOp.cpp b/src/gpu/ops/GrLatticeOp.cpp
index 07821c016e..00dbef537f 100644
--- a/src/gpu/ops/GrLatticeOp.cpp
+++ b/src/gpu/ops/GrLatticeOp.cpp
@@ -96,7 +96,7 @@ private:
GrSamplerState::Filter filter)
: INHERITED(kLatticeGP_ClassID), fColorSpaceXform(std::move(csxf)) {
fSampler.reset(std::move(proxy), filter);
- this->addTextureSampler(&fSampler);
+ this->setTextureSamplerCnt(1);
this->setVertexAttributeCnt(4);
}
@@ -104,6 +104,8 @@ private:
return IthAttribute(i, kPositions, kTextureCoords, kTextureDomain, kColors);
}
+ const TextureSampler& onTextureSampler(int) const override { return fSampler; }
+
static constexpr Attribute kPositions = {"position", kFloat2_GrVertexAttribType};
static constexpr Attribute kTextureCoords = {"textureCoords", kFloat2_GrVertexAttribType};
static constexpr Attribute kTextureDomain = {"textureDomain", kFloat4_GrVertexAttribType};