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

Side by Side Diff: src/gpu/vk/GrVkProgramDesc.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 2015 Google Inc. 2 * Copyright 2015 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 "GrVkProgramDesc.h" 7 #include "GrVkProgramDesc.h"
8 8
9 //#include "GrVkProcessor.h" 9 //#include "GrVkProcessor.h"
10 #include "GrProcessor.h" 10 #include "GrProcessor.h"
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 } 153 }
154 154
155 header->fOutputSwizzle = glslCaps.configOutputSwizzle(rt->config()).asKey(); 155 header->fOutputSwizzle = glslCaps.configOutputSwizzle(rt->config()).asKey();
156 156
157 if (pipeline.ignoresCoverage()) { 157 if (pipeline.ignoresCoverage()) {
158 header->fIgnoresCoverage = 1; 158 header->fIgnoresCoverage = 1;
159 } else { 159 } else {
160 header->fIgnoresCoverage = 0; 160 header->fIgnoresCoverage = 0;
161 } 161 }
162 162
163 if (pipeline.usesDistanceVectorField()) {
164 header->fUsesDistanceVectorField = 1;
165 } else {
166 header->fUsesDistanceVectorField = 0;
167 }
168
163 header->fSnapVerticesToPixelCenters = pipeline.snapVerticesToPixelCenters(); 169 header->fSnapVerticesToPixelCenters = pipeline.snapVerticesToPixelCenters();
164 header->fColorEffectCnt = pipeline.numColorFragmentProcessors(); 170 header->fColorEffectCnt = pipeline.numColorFragmentProcessors();
165 header->fCoverageEffectCnt = pipeline.numCoverageFragmentProcessors(); 171 header->fCoverageEffectCnt = pipeline.numCoverageFragmentProcessors();
166 vkDesc->finalize(); 172 vkDesc->finalize();
167 return true; 173 return true;
168 } 174 }
OLDNEW
« src/gpu/glsl/GrGLSLProgramBuilder.cpp ('K') | « src/gpu/glsl/GrGLSLProgramBuilder.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698