Index: src/gpu/effects/GrTextureDomain.h |
diff --git a/src/gpu/effects/GrTextureDomain.h b/src/gpu/effects/GrTextureDomain.h |
index f64d5c3cf5865dbdb53726d33759524cfa0d3a97..b4c0b297f11c8f2bba13319ecfc9410cc9863c44 100644 |
--- a/src/gpu/effects/GrTextureDomain.h |
+++ b/src/gpu/effects/GrTextureDomain.h |
@@ -31,6 +31,12 @@ public: |
}; |
static const int kModeCount = kLastMode + 1; |
+ static const GrTextureDomain& IgnoredDomain() { |
+ static const SkRect gDummyRect = {0, 0, 0, 0}; |
+ static const GrTextureDomain gDomain(gDummyRect, kIgnore_Mode); |
+ return gDomain; |
+ } |
+ |
/** |
* @param index Pass a value >= 0 if using multiple texture domains in the same effect. |
* It is used to keep inserted variables from causing name collisions. |