| Index: src/gpu/GrProcessor.cpp
|
| diff --git a/src/gpu/GrProcessor.cpp b/src/gpu/GrProcessor.cpp
|
| index da27abb4a95d4c16271af734bc2555edcb8f7cbf..fb4e0d6ccfc75a01b9dfc276cb70544f2e4f7d06 100644
|
| --- a/src/gpu/GrProcessor.cpp
|
| +++ b/src/gpu/GrProcessor.cpp
|
| @@ -116,14 +116,20 @@ void GrProcessor::operator delete(void* target) {
|
| GrProcessor_Globals::GetTLS()->release(target);
|
| }
|
|
|
| -#ifdef SK_DEBUG
|
| -void GrProcessor::assertTexturesEqual(const GrProcessor& other) const {
|
| - SkASSERT(this->numTextures() == other.numTextures());
|
| +bool GrProcessor::hasSameTextureAccesses(const GrProcessor& that) const {
|
| + if (this->numTextures() != that.numTextures()) {
|
| + return false;
|
| + }
|
| for (int i = 0; i < this->numTextures(); ++i) {
|
| - SkASSERT(this->textureAccess(i) == other.textureAccess(i));
|
| + if (this->textureAccess(i) != that.textureAccess(i)) {
|
| + return false;
|
| + }
|
| }
|
| + return true;
|
| }
|
|
|
| +#ifdef SK_DEBUG
|
| +
|
| void GrProcessor::InvariantOutput::validate() const {
|
| if (fIsSingleComponent) {
|
| SkASSERT(0 == fValidFlags || kRGBA_GrColorComponentFlags == fValidFlags);
|
|
|