Index: src/gpu/GrProcessor.cpp |
diff --git a/src/gpu/GrProcessor.cpp b/src/gpu/GrProcessor.cpp |
index 26e00530be848491e87d9ecb82035f29dd4c680f..c419cc7307de5df277a93c0a0977286a1fca2a24 100644 |
--- a/src/gpu/GrProcessor.cpp |
+++ b/src/gpu/GrProcessor.cpp |
@@ -59,11 +59,6 @@ const char* GrProcessor::name() const { |
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()); |
@@ -79,10 +74,6 @@ void GrProcessor::operator delete(void* target) { |
#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)); |
@@ -129,5 +120,11 @@ bool GrProcessor::InvariantOutput::validPreMulColor() const { |
} |
return true; |
} |
-#endif |
+#endif // end DEBUG |
+/////////////////////////////////////////////////////////////////////////////////////////////////// |
+ |
+void GrFragmentProcessor::addCoordTransform(const GrCoordTransform* transform) { |
+ fCoordTransforms.push_back(transform); |
+ SkDEBUGCODE(transform->setInEffect();) |
+} |