| Index: src/gpu/GrProcessor.cpp
|
| diff --git a/src/gpu/GrProcessor.cpp b/src/gpu/GrProcessor.cpp
|
| index ccd4d7f7e86bae2bb64350f8839991ae24000cc8..3d5e35dc049a506d41af5f808660af99e88d7d82 100644
|
| --- a/src/gpu/GrProcessor.cpp
|
| +++ b/src/gpu/GrProcessor.cpp
|
| @@ -145,10 +145,6 @@ bool GrProcessor::hasSameTextureAccesses(const GrProcessor& that) const {
|
| return true;
|
| }
|
|
|
| -void GrProcessor::computeInvariantOutput(GrInvariantOutput* inout) const {
|
| - this->onComputeInvariantOutput(inout);
|
| -}
|
| -
|
| ///////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
| void GrFragmentProcessor::addCoordTransform(const GrCoordTransform* transform) {
|
| @@ -169,10 +165,33 @@ bool GrFragmentProcessor::hasSameTransforms(const GrFragmentProcessor& that) con
|
| return true;
|
| }
|
|
|
| +void GrFragmentProcessor::computeInvariantOutput(GrInvariantOutput* inout) const {
|
| + this->onComputeInvariantOutput(inout);
|
| +}
|
| +
|
| ///////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
| -void GrGeometryProcessor::computeInvariantColor(GrInvariantOutput* intout) const {
|
| +void GrGeometryProcessor::getOutputColor(GrInitInvariantOutput* out) const {
|
| + if (fHasVertexColor) {
|
| + out->setUnknownFourComponents();
|
| + } else {
|
| + out->setKnownFourComponents(fColor);
|
| + }
|
| + this->onGetOutputColor(out);
|
| +}
|
|
|
| +void GrGeometryProcessor::getOutputCoverage(GrInitInvariantOutput* out) const {
|
| + this->onGetOutputCoverage(out);
|
| +}
|
| +
|
| +///////////////////////////////////////////////////////////////////////////////////////////////////
|
| +
|
| +void GrPathProcessor::getOutputColor(GrInitInvariantOutput* out) const {
|
| + out->setKnownFourComponents(fColor);
|
| +}
|
| +
|
| +void GrPathProcessor::getOutputCoverage(GrInitInvariantOutput* out) const {
|
| + out->setKnownSingleComponent(0xff);
|
| }
|
|
|
| ///////////////////////////////////////////////////////////////////////////////////////////////////
|
| @@ -194,3 +213,9 @@ void GrGeometryData::operator delete(void* target) {
|
| int32_t GrXPFactory::gCurrXPFClassID =
|
| GrXPFactory::kIllegalXPFClassID;
|
|
|
| +///////////////////////////////////////////////////////////////////////////////////////////////////
|
| +
|
| +void GrXferProcessor::computeInvariantOutput(GrInvariantOutput* inout) const {
|
| + this->onComputeInvariantOutput(inout);
|
| +}
|
| +
|
|
|