Index: src/gpu/GrPipeline.cpp |
diff --git a/src/gpu/GrPipeline.cpp b/src/gpu/GrPipeline.cpp |
index bc3e785ba138a4d94cd301384c53e6e4bb9ba336..1fabddafe19096544408329caf8393cf304fda5a 100644 |
--- a/src/gpu/GrPipeline.cpp |
+++ b/src/gpu/GrPipeline.cpp |
@@ -120,6 +120,13 @@ GrPipeline* GrPipeline::CreateAt(void* memory, const CreateArgs& args, |
if (SkToBool(optFlags & GrXferProcessor::kCanTweakAlphaForCoverage_OptFlag)) { |
opts->fFlags |= GrPipelineOptimizations::kCanTweakAlphaForCoverage_Flag; |
} |
+ |
+ GrXPFactory::InvariantBlendedColor blendedColor; |
+ builder.fXPFactory->getInvariantBlendedColor(args.fColorPOI, &blendedColor); |
+ if (blendedColor.fWillBlendWithDst) { |
+ opts->fFlags |= GrPipelineOptimizations::kWillColorBlendWithDst_Flag; |
+ } |
+ |
return pipeline; |
} |