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

Side by Side 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright 2013 Google Inc. 2 * Copyright 2013 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 #include "GrGLProgramDesc.h" 7 #include "GrGLProgramDesc.h"
8 8
9 #include "GrProcessor.h" 9 #include "GrProcessor.h"
10 #include "GrPipeline.h" 10 #include "GrPipeline.h"
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 } 175 }
176 176
177 header->fOutputSwizzle = glslCaps.configOutputSwizzle(rt->config()).asKey(); 177 header->fOutputSwizzle = glslCaps.configOutputSwizzle(rt->config()).asKey();
178 178
179 if (pipeline.ignoresCoverage()) { 179 if (pipeline.ignoresCoverage()) {
180 header->fIgnoresCoverage = 1; 180 header->fIgnoresCoverage = 1;
181 } else { 181 } else {
182 header->fIgnoresCoverage = 0; 182 header->fIgnoresCoverage = 0;
183 } 183 }
184 184
185 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.
186 header->fUsesDistanceVectorField = 1;
187 } else {
188 header->fUsesDistanceVectorField = 0;
189 }
190
185 header->fSnapVerticesToPixelCenters = pipeline.snapVerticesToPixelCenters(); 191 header->fSnapVerticesToPixelCenters = pipeline.snapVerticesToPixelCenters();
186 header->fColorEffectCnt = pipeline.numColorFragmentProcessors(); 192 header->fColorEffectCnt = pipeline.numColorFragmentProcessors();
187 header->fCoverageEffectCnt = pipeline.numCoverageFragmentProcessors(); 193 header->fCoverageEffectCnt = pipeline.numCoverageFragmentProcessors();
188 glDesc->finalize(); 194 glDesc->finalize();
189 return true; 195 return true;
190 } 196 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698