initial changes to add local matrix to primitive processor
BUG=skia:
Review URL: https://codereview.chromium.org/820523002
diff --git a/include/gpu/GrFragmentProcessor.h b/include/gpu/GrFragmentProcessor.h
index 0c15599..fe6e6fa 100644
--- a/include/gpu/GrFragmentProcessor.h
+++ b/include/gpu/GrFragmentProcessor.h
@@ -25,7 +25,8 @@
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 @@
/** 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 @@
SkSTArray<4, const GrCoordTransform*, true> fCoordTransforms;
bool fWillReadDstColor;
bool fWillUseInputColor;
+ bool fUsesLocalCoords;
typedef GrProcessor INHERITED;
};