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

Unified Diff: src/gpu/GrFragmentProcessor.cpp

Issue 2316413003: Remove ability to skip coord transform comparison in pipeline comparison. (Closed)
Patch Set: Created 4 years, 3 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 | « include/gpu/GrFragmentProcessor.h ('k') | src/gpu/GrPipeline.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrFragmentProcessor.cpp
diff --git a/src/gpu/GrFragmentProcessor.cpp b/src/gpu/GrFragmentProcessor.cpp
index c905fcc44f3fb34835c095e20a274799de714214..a9d4a5e8a18bcb4ec6b976b154b732ae3d9c718a 100644
--- a/src/gpu/GrFragmentProcessor.cpp
+++ b/src/gpu/GrFragmentProcessor.cpp
@@ -24,17 +24,12 @@ GrFragmentProcessor::~GrFragmentProcessor() {
}
}
-bool GrFragmentProcessor::isEqual(const GrFragmentProcessor& that,
- bool ignoreCoordTransforms) const {
+bool GrFragmentProcessor::isEqual(const GrFragmentProcessor& that) const {
if (this->classID() != that.classID() ||
!this->hasSameSamplers(that)) {
return false;
}
- if (ignoreCoordTransforms) {
- if (this->numTransforms() != that.numTransforms()) {
- return false;
- }
- } else if (!this->hasSameTransforms(that)) {
+ if (!this->hasSameTransforms(that)) {
return false;
}
if (!this->onIsEqual(that)) {
@@ -44,7 +39,7 @@ bool GrFragmentProcessor::isEqual(const GrFragmentProcessor& that,
return false;
}
for (int i = 0; i < this->numChildProcessors(); ++i) {
- if (!this->childProcessor(i).isEqual(that.childProcessor(i), ignoreCoordTransforms)) {
+ if (!this->childProcessor(i).isEqual(that.childProcessor(i))) {
return false;
}
}
« no previous file with comments | « include/gpu/GrFragmentProcessor.h ('k') | src/gpu/GrPipeline.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698