Use DrawStates ProcOptInfo when creating the Optimized Draw State.
BUG=skia:
Review URL: https://codereview.chromium.org/726693002
diff --git a/src/gpu/GrDrawState.h b/src/gpu/GrDrawState.h
index 454390c..974aff4 100644
--- a/src/gpu/GrDrawState.h
+++ b/src/gpu/GrDrawState.h
@@ -803,6 +803,16 @@
GrBlendCoeff* srcCoeff = NULL,
GrBlendCoeff* dstCoeff = NULL) const;
+ const GrProcOptInfo& colorProcInfo() const {
+ this->calcColorInvariantOutput();
+ return fColorProcInfo;
+ }
+
+ const GrProcOptInfo& coverageProcInfo() const {
+ this->calcCoverageInvariantOutput();
+ return fCoverageProcInfo;
+ }
+
/**
* Determines whether src alpha is guaranteed to be one for all src pixels
*/