Index: include/gpu/GrFragmentProcessor.h |
diff --git a/include/gpu/GrFragmentProcessor.h b/include/gpu/GrFragmentProcessor.h |
index 0c155996d5aec2280e9468d29071d42ddbb76af4..fe6e6faf14654429d81fb5660c99033e5b738c07 100644 |
--- a/include/gpu/GrFragmentProcessor.h |
+++ b/include/gpu/GrFragmentProcessor.h |
@@ -25,7 +25,8 @@ public: |
GrFragmentProcessor() |
: INHERITED() |
, fWillReadDstColor(false) |
- , fWillUseInputColor(true) {} |
+ , fWillUseInputColor(true) |
+ , fUsesLocalCoords(false) {} |
/** Implemented using GLFragmentProcessor::GenKey as described in this class's comment. */ |
virtual void getGLProcessorKey(const GrGLCaps& caps, |
@@ -52,6 +53,9 @@ public: |
/** Will this prceossor read the source color value? */ |
bool willUseInputColor() const { return fWillUseInputColor; } |
+ /** Do any of the coordtransforms for this processor require local coords? */ |
+ bool usesLocalCoords() const { return fUsesLocalCoords; } |
+ |
/** Returns true if this and other processor conservatively draw identically. It can only return |
true when the two processor are of the same subclass (i.e. they return the same object from |
from getFactory()). |
@@ -130,6 +134,7 @@ private: |
SkSTArray<4, const GrCoordTransform*, true> fCoordTransforms; |
bool fWillReadDstColor; |
bool fWillUseInputColor; |
+ bool fUsesLocalCoords; |
typedef GrProcessor INHERITED; |
}; |