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

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

Issue 2114993002: GrFP can express distance vector field req., program builder declares variable for it (Closed) Base URL: https://skia.googlesource.com/skia@dvonbeck-bevel-api-change
Patch Set: rebase Created 4 years, 5 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/GrGLProgramDesc.cpp
diff --git a/src/gpu/gl/GrGLProgramDesc.cpp b/src/gpu/gl/GrGLProgramDesc.cpp
index 801224c9b6744b61c3af3af9947c89dba8775f6b..741da86e82ae25e5b323bf96ee784cb26ba6fa6a 100644
--- a/src/gpu/gl/GrGLProgramDesc.cpp
+++ b/src/gpu/gl/GrGLProgramDesc.cpp
@@ -182,6 +182,12 @@ bool GrGLProgramDescBuilder::Build(GrProgramDesc* desc,
header->fIgnoresCoverage = 0;
}
+ if (pipeline.usesDistanceVectorField()) {
egdaniel 2016/07/12 13:46:42 I know I said we should add this to the key here,
dvonbeck 2016/07/13 15:17:13 The GeoProc?
dvonbeck 2016/07/13 19:07:15 Oh, the FP! That makes sense. I removed this code.
+ header->fUsesDistanceVectorField = 1;
+ } else {
+ header->fUsesDistanceVectorField = 0;
+ }
+
header->fSnapVerticesToPixelCenters = pipeline.snapVerticesToPixelCenters();
header->fColorEffectCnt = pipeline.numColorFragmentProcessors();
header->fCoverageEffectCnt = pipeline.numCoverageFragmentProcessors();

Powered by Google App Engine
This is Rietveld 408576698