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

Side by Side Diff: src/gpu/GrPipelineBuilder.h

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: Quick rebase fix 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 7
8 #ifndef GrPipelineBuilder_DEFINED 8 #ifndef GrPipelineBuilder_DEFINED
9 #define GrPipelineBuilder_DEFINED 9 #define GrPipelineBuilder_DEFINED
10 10
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 /** 214 /**
215 * Suppress linear -> sRGB conversion when rendering to sRGB render targ ets. 215 * Suppress linear -> sRGB conversion when rendering to sRGB render targ ets.
216 */ 216 */
217 kDisableOutputConversionToSRGB_Flag = 0x04, 217 kDisableOutputConversionToSRGB_Flag = 0x04,
218 218
219 /** 219 /**
220 * Allow sRGB -> linear conversion when reading from sRGB inputs. 220 * Allow sRGB -> linear conversion when reading from sRGB inputs.
221 */ 221 */
222 kAllowSRGBInputs_Flag = 0x08, 222 kAllowSRGBInputs_Flag = 0x08,
223 223
224 kLast_Flag = kAllowSRGBInputs_Flag, 224 /**
225 * Signals that one or more FPs need access to the distance vector field to the nearest
226 * edge
227 */
228 kUsesDistanceVectorField_Flag = 0x10,
229
egdaniel 2016/07/26 13:48:25 extra \n
dvonbeck 2016/07/26 14:38:27 Done.
230
231 kLast_Flag = kUsesDistanceVectorField_Flag,
225 }; 232 };
226 233
227 bool isHWAntialias() const { return SkToBool(fFlags & kHWAntialias_Flag); } 234 bool isHWAntialias() const { return SkToBool(fFlags & kHWAntialias_Flag); }
228 bool snapVerticesToPixelCenters() const { 235 bool snapVerticesToPixelCenters() const {
229 return SkToBool(fFlags & kSnapVerticesToPixelCenters_Flag); } 236 return SkToBool(fFlags & kSnapVerticesToPixelCenters_Flag); }
230 bool getDisableOutputConversionToSRGB() const { 237 bool getDisableOutputConversionToSRGB() const {
231 return SkToBool(fFlags & kDisableOutputConversionToSRGB_Flag); } 238 return SkToBool(fFlags & kDisableOutputConversionToSRGB_Flag); }
232 bool getAllowSRGBInputs() const { 239 bool getAllowSRGBInputs() const {
233 return SkToBool(fFlags & kAllowSRGBInputs_Flag); } 240 return SkToBool(fFlags & kAllowSRGBInputs_Flag); }
241 bool getUsesDistanceVectorField() const {
242 return SkToBool(fFlags & kUsesDistanceVectorField_Flag); }
234 243
235 /** 244 /**
236 * Enable render state settings. 245 * Enable render state settings.
237 * 246 *
238 * @param flags bitfield of Flags specifying the states to enable 247 * @param flags bitfield of Flags specifying the states to enable
239 */ 248 */
240 void enableState(uint32_t flags) { fFlags |= flags; } 249 void enableState(uint32_t flags) { fFlags |= flags; }
241 250
242 /** 251 /**
243 * Disable render state settings. 252 * Disable render state settings.
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 GrDrawFace fDrawFace; 309 GrDrawFace fDrawFace;
301 mutable sk_sp<GrXPFactory> fXPFactory; 310 mutable sk_sp<GrXPFactory> fXPFactory;
302 FragmentProcessorArray fColorFragmentProcessors; 311 FragmentProcessorArray fColorFragmentProcessors;
303 FragmentProcessorArray fCoverageFragmentProcessors; 312 FragmentProcessorArray fCoverageFragmentProcessors;
304 313
305 friend class GrPipeline; 314 friend class GrPipeline;
306 friend class GrDrawTarget; 315 friend class GrDrawTarget;
307 }; 316 };
308 317
309 #endif 318 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698