Fix == operator in GrTextureDomain so we don't compair uninitilized values
We were getting random behavior when comparing two GrTexureDomains since
fDomain was not initialized when the mode was set to ignore.
BUG=skia:
R=bsalomon@google.com
Author: egdaniel@google.com
Review URL: https://codereview.chromium.org/469393007
diff --git a/src/gpu/effects/GrTextureDomain.h b/src/gpu/effects/GrTextureDomain.h
index 7796afe..577098a 100644
--- a/src/gpu/effects/GrTextureDomain.h
+++ b/src/gpu/effects/GrTextureDomain.h
@@ -68,7 +68,7 @@
}
bool operator== (const GrTextureDomain& that) const {
- return fMode == that.fMode && fDomain == that.fDomain;
+ return fMode == that.fMode && (kIgnore_Mode == fMode || fDomain == that.fDomain);
}
/**