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

Side by Side Diff: src/gpu/gl/GrGLProgramDesc.cpp

Issue 1717393002: Add "sample locations" feature to GrProcessor (Closed) Base URL: https://skia.googlesource.com/skia.git@upload_getmultisamp
Patch Set: assert Created 4 years, 10 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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 header->fSnapVerticesToPixelCenters = pipeline.snapVerticesToPixelCenters(); 163 header->fSnapVerticesToPixelCenters = pipeline.snapVerticesToPixelCenters();
164 header->fColorEffectCnt = pipeline.numColorFragmentProcessors(); 164 header->fColorEffectCnt = pipeline.numColorFragmentProcessors();
165 header->fCoverageEffectCnt = pipeline.numCoverageFragmentProcessors(); 165 header->fCoverageEffectCnt = pipeline.numCoverageFragmentProcessors();
166
167 if (pipeline.hasSampleLocations()) {
168 header->fSamplePatternKey = pipeline.getSamplePatternID();
169 } else {
170 header->fSamplePatternKey = 0;
171 }
172
166 glDesc->finalize(); 173 glDesc->finalize();
167 return true; 174 return true;
168 } 175 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698