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

Side by Side Diff: src/gpu/GrProgramDesc.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: 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 2014 Google Inc. 2 * Copyright 2014 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 GrProgramDesc_DEFINED 8 #ifndef GrProgramDesc_DEFINED
9 #define GrProgramDesc_DEFINED 9 #define GrProgramDesc_DEFINED
10 10
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 uint8_t fSurfaceOriginKey; 74 uint8_t fSurfaceOriginKey;
75 // Set to uniquely identify the sample pattern, or 0 if the shader doesn 't use sample 75 // Set to uniquely identify the sample pattern, or 0 if the shader doesn 't use sample
76 // locations. 76 // locations.
77 uint8_t fSamplePatternKey; 77 uint8_t fSamplePatternKey;
78 // Set to uniquely idenitify any swizzling of the shader's output color( s). 78 // Set to uniquely idenitify any swizzling of the shader's output color( s).
79 uint8_t fOutputSwizzle; 79 uint8_t fOutputSwizzle;
80 uint8_t fSnapVerticesToPixelCenters; 80 uint8_t fSnapVerticesToPixelCenters;
81 int8_t fColorEffectCnt; 81 int8_t fColorEffectCnt;
82 int8_t fCoverageEffectCnt; 82 int8_t fCoverageEffectCnt;
83 uint8_t fIgnoresCoverage; 83 uint8_t fIgnoresCoverage;
84 uint8_t fUsesDistanceVectorField;
84 }; 85 };
85 86
86 int numColorEffects() const { 87 int numColorEffects() const {
87 return this->header().fColorEffectCnt; 88 return this->header().fColorEffectCnt;
88 } 89 }
89 90
90 int numCoverageEffects() const { 91 int numCoverageEffects() const {
91 return this->header().fCoverageEffectCnt; 92 return this->header().fCoverageEffectCnt;
92 } 93 }
93 94
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 }; 139 };
139 140
140 SkSTArray<kPreAllocSize, uint8_t, true>& key() { return fKey; } 141 SkSTArray<kPreAllocSize, uint8_t, true>& key() { return fKey; }
141 const SkSTArray<kPreAllocSize, uint8_t, true>& key() const { return fKey; } 142 const SkSTArray<kPreAllocSize, uint8_t, true>& key() const { return fKey; }
142 143
143 private: 144 private:
144 SkSTArray<kPreAllocSize, uint8_t, true> fKey; 145 SkSTArray<kPreAllocSize, uint8_t, true> fKey;
145 }; 146 };
146 147
147 #endif 148 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698