Index: src/gpu/GrProcessor.cpp |
diff --git a/src/gpu/GrProcessor.cpp b/src/gpu/GrProcessor.cpp |
index 1732e3a27a4f6239658d1c08f1e8ba23406882e3..71dfaae9129a7d819048636ef767d4c17eb34f45 100644 |
--- a/src/gpu/GrProcessor.cpp |
+++ b/src/gpu/GrProcessor.cpp |
@@ -103,6 +103,11 @@ |
return this->getFactory().name(); |
} |
+void GrProcessor::addCoordTransform(const GrCoordTransform* transform) { |
+ fCoordTransforms.push_back(transform); |
+ SkDEBUGCODE(transform->setInEffect();) |
+} |
+ |
void GrProcessor::addTextureAccess(const GrTextureAccess* access) { |
fTextureAccesses.push_back(access); |
this->addGpuResource(access->getProgramTexture()); |
@@ -118,6 +123,10 @@ |
#ifdef SK_DEBUG |
void GrProcessor::assertEquality(const GrProcessor& other) const { |
+ SkASSERT(this->numTransforms() == other.numTransforms()); |
+ for (int i = 0; i < this->numTransforms(); ++i) { |
+ SkASSERT(this->coordTransform(i) == other.coordTransform(i)); |
+ } |
SkASSERT(this->numTextures() == other.numTextures()); |
for (int i = 0; i < this->numTextures(); ++i) { |
SkASSERT(this->textureAccess(i) == other.textureAccess(i)); |
@@ -164,11 +173,5 @@ |
} |
return true; |
} |
-#endif // end DEBUG |
+#endif |
-/////////////////////////////////////////////////////////////////////////////////////////////////// |
- |
-void GrFragmentProcessor::addCoordTransform(const GrCoordTransform* transform) { |
- fCoordTransforms.push_back(transform); |
- SkDEBUGCODE(transform->setInEffect();) |
-} |