Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(153)

Unified Diff: src/gpu/GrPipeline.cpp

Issue 1068463004: Set willReadFragmentPosition on XP when doing a DstCopy. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/gpu/GrXferProcessor.cpp » ('j') | src/gpu/GrXferProcessor.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrPipeline.cpp
diff --git a/src/gpu/GrPipeline.cpp b/src/gpu/GrPipeline.cpp
index 906426caaaecc0699dd8d878ee2ccdfa9bdfd6dd..fc9f4eab12ecb1b4171bed990eca4f73841f0f10 100644
--- a/src/gpu/GrPipeline.cpp
+++ b/src/gpu/GrPipeline.cpp
@@ -112,13 +112,15 @@ void GrPipeline::adjustProgramFromOptimizations(const GrPipelineBuilder& pipelin
const GrProcOptInfo& coveragePOI,
int* firstColorStageIdx,
int* firstCoverageStageIdx) {
- fReadsFragPosition = false;
+ fReadsFragPosition = fXferProcessor->willReadFragmentPosition();
if ((flags & GrXferProcessor::kIgnoreColor_OptFlag) ||
(flags & GrXferProcessor::kOverrideColor_OptFlag)) {
*firstColorStageIdx = pipelineBuilder.numColorFragmentStages();
} else {
- fReadsFragPosition = colorPOI.readsFragPosition();
+ if (coveragePOI.readsFragPosition()) {
+ fReadsFragPosition = true;
+ }
}
if (flags & GrXferProcessor::kIgnoreCoverage_OptFlag) {
« no previous file with comments | « no previous file | src/gpu/GrXferProcessor.cpp » ('j') | src/gpu/GrXferProcessor.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698