Index: src/gpu/effects/GrSingleTextureEffect.h |
diff --git a/src/gpu/effects/GrSingleTextureEffect.h b/src/gpu/effects/GrSingleTextureEffect.h |
index 1331ae4ab75d3a3c1448f44004a378e418c95cf2..27a7d7956d2ef34dae7a6460d4d3656c8fc9872d 100644 |
--- a/src/gpu/effects/GrSingleTextureEffect.h |
+++ b/src/gpu/effects/GrSingleTextureEffect.h |
@@ -41,10 +41,8 @@ protected: |
* Helper for subclass onIsEqual() functions. |
*/ |
bool hasSameTextureParamsMatrixAndCoordsType(const GrSingleTextureEffect& other) const { |
- const GrTextureAccess& otherAccess = other.fTextureAccess; |
// We don't have to check the accesses' swizzles because they are inferred from the texture. |
- return fTextureAccess.getTexture() == otherAccess.getTexture() && |
- fTextureAccess.getParams() == otherAccess.getParams() && |
+ return fTextureAccess == other.fTextureAccess && |
this->getMatrix().cheapEqualTo(other.getMatrix()) && |
fCoordsType == other.fCoordsType; |
} |