Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(23)

Unified Diff: src/gpu/effects/GrSingleTextureEffect.h

Issue 657923002: Make GrFragmentProcessor auto-compare coord xforms. (Closed) Base URL: https://skia.googlesource.com/skia.git@key
Patch Set: Add \! Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/GrProcessor.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/effects/GrSingleTextureEffect.h
diff --git a/src/gpu/effects/GrSingleTextureEffect.h b/src/gpu/effects/GrSingleTextureEffect.h
index ad13c2edeb93e86617f1f14a2a66f8908de82c89..c16c088a1824b020e15656f01792aaf16025cc9d 100644
--- a/src/gpu/effects/GrSingleTextureEffect.h
+++ b/src/gpu/effects/GrSingleTextureEffect.h
@@ -38,9 +38,7 @@ protected:
*/
bool hasSameTextureParamsMatrixAndSourceCoords(const GrSingleTextureEffect& other) const {
// We don't have to check the accesses' swizzles because they are inferred from the texture.
- return fTextureAccess == other.fTextureAccess &&
- fCoordTransform.getMatrix().cheapEqualTo(other.fCoordTransform.getMatrix()) &&
- fCoordTransform.sourceCoords() == other.fCoordTransform.sourceCoords();
+ return fTextureAccess == other.fTextureAccess;
}
/**
« no previous file with comments | « src/gpu/GrProcessor.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698