| Index: src/gpu/GrProcessor.cpp
|
| diff --git a/src/gpu/GrProcessor.cpp b/src/gpu/GrProcessor.cpp
|
| index 4e171fc99b0faf3ff93e8f35f3e6be1bb109b1ec..da27abb4a95d4c16271af734bc2555edcb8f7cbf 100644
|
| --- a/src/gpu/GrProcessor.cpp
|
| +++ b/src/gpu/GrProcessor.cpp
|
| @@ -172,3 +172,16 @@ void GrFragmentProcessor::addCoordTransform(const GrCoordTransform* transform) {
|
| fCoordTransforms.push_back(transform);
|
| SkDEBUGCODE(transform->setInProcessor();)
|
| }
|
| +
|
| +bool GrFragmentProcessor::hasSameTransforms(const GrFragmentProcessor& that) const {
|
| + if (fCoordTransforms.count() != that.fCoordTransforms.count()) {
|
| + return false;
|
| + }
|
| + int count = fCoordTransforms.count();
|
| + for (int i = 0; i < count; ++i) {
|
| + if (*fCoordTransforms[i] != *that.fCoordTransforms[i]) {
|
| + return false;
|
| + }
|
| + }
|
| + return true;
|
| +}
|
|
|