Make GrCircleBlurFragmentProcessor::onIsEqual include the position
Previously we would fail to draw two adjacent blurred circles if they differed only by their position. GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1824693003 Review URL: https://codereview.chromium.org/1824693003
This commit is contained in:
parent
6c962f550f
commit
ddf0713f0b
@ -64,7 +64,7 @@ private:
|
||||
bool onIsEqual(const GrFragmentProcessor& other) const override {
|
||||
const GrCircleBlurFragmentProcessor& cbfp = other.cast<GrCircleBlurFragmentProcessor>();
|
||||
// fOffset is computed from the circle width and the sigma
|
||||
return this->circle().width() == cbfp.circle().width() && fSigma == cbfp.fSigma;
|
||||
return this->circle() == cbfp.circle() && fSigma == cbfp.fSigma;
|
||||
}
|
||||
|
||||
void onComputeInvariantOutput(GrInvariantOutput* inout) const override;
|
||||
|
Loading…
Reference in New Issue
Block a user