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

Unified Diff: src/gpu/gl/GrGLProgram.cpp

Issue 554833002: Calculate Primary and Secondary output types in the GrOptDrawState (Closed) Base URL: https://skia.googlesource.com/skia.git@optReadDst
Patch Set: Rebase Created 6 years, 3 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
Index: src/gpu/gl/GrGLProgram.cpp
diff --git a/src/gpu/gl/GrGLProgram.cpp b/src/gpu/gl/GrGLProgram.cpp
index 8c2dd966b00dcd3c5aeefd9ddcf1eca1221060df..68e91cd294eb9393a5d754d97ee9e8036fe48c71 100644
--- a/src/gpu/gl/GrGLProgram.cpp
+++ b/src/gpu/gl/GrGLProgram.cpp
@@ -72,28 +72,6 @@ void GrGLProgram::abandon() {
fProgramID = 0;
}
-void GrGLProgram::overrideBlend(GrBlendCoeff* srcCoeff,
- GrBlendCoeff* dstCoeff) const {
- switch (fDesc.getHeader().fCoverageOutput) {
- case GrGLProgramDesc::kModulate_CoverageOutput:
- break;
- // The prog will write a coverage value to the secondary
- // output and the dst is blended by one minus that value.
- case GrGLProgramDesc::kSecondaryCoverage_CoverageOutput:
- case GrGLProgramDesc::kSecondaryCoverageISA_CoverageOutput:
- case GrGLProgramDesc::kSecondaryCoverageISC_CoverageOutput:
- *dstCoeff = (GrBlendCoeff)GrGpu::kIS2C_GrBlendCoeff;
- break;
- case GrGLProgramDesc::kCombineWithDst_CoverageOutput:
- // We should only have set this if the blend was specified as (1, 0)
- SkASSERT(kOne_GrBlendCoeff == *srcCoeff && kZero_GrBlendCoeff == *dstCoeff);
- break;
- default:
- SkFAIL("Unexpected coverage output");
- break;
- }
-}
-
void GrGLProgram::initSamplerUniforms() {
GL_CALL(UseProgram(fProgramID));
GrGLint texUnitIdx = 0;

Powered by Google App Engine
This is Rietveld 408576698