bsalomon@google.com | 31ec798 | 2013-03-27 18:14:57 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2013 Google Inc. |
| 3 | * |
| 4 | * Use of this source code is governed by a BSD-style license that can be |
| 5 | * found in the LICENSE file. |
| 6 | */ |
| 7 | |
| 8 | #ifndef GrGLProgramDesc_DEFINED |
| 9 | #define GrGLProgramDesc_DEFINED |
| 10 | |
| 11 | #include "GrGLEffect.h" |
bsalomon@google.com | 798c8c4 | 2013-03-27 19:50:27 +0000 | [diff] [blame] | 12 | #include "GrDrawState.h" |
commit-bot@chromium.org | 0a6fe71 | 2014-04-23 19:26:26 +0000 | [diff] [blame] | 13 | #include "GrGpu.h" |
bsalomon@google.com | 31ec798 | 2013-03-27 18:14:57 +0000 | [diff] [blame] | 14 | |
| 15 | class GrGpuGL; |
| 16 | |
commit-bot@chromium.org | 515dcd3 | 2013-08-28 14:17:03 +0000 | [diff] [blame] | 17 | #ifdef SK_DEBUG |
| 18 | // Optionally compile the experimental GS code. Set to SK_DEBUG so that debug build bots will |
| 19 | // execute the code. |
| 20 | #define GR_GL_EXPERIMENTAL_GS 1 |
| 21 | #else |
| 22 | #define GR_GL_EXPERIMENTAL_GS 0 |
| 23 | #endif |
bsalomon@google.com | 31ec798 | 2013-03-27 18:14:57 +0000 | [diff] [blame] | 24 | |
| 25 | |
bsalomon@google.com | 26e18b5 | 2013-03-29 19:22:36 +0000 | [diff] [blame] | 26 | /** This class describes a program to generate. It also serves as a program cache key. Very little |
bsalomon | 63e99f7 | 2014-07-21 08:03:14 -0700 | [diff] [blame] | 27 | of this is GL-specific. The GL-specific parts could be factored out into a subclass. */ |
bsalomon@google.com | 31ec798 | 2013-03-27 18:14:57 +0000 | [diff] [blame] | 28 | class GrGLProgramDesc { |
| 29 | public: |
bsalomon | 848faf0 | 2014-07-11 10:01:02 -0700 | [diff] [blame] | 30 | GrGLProgramDesc() {} |
bsalomon@google.com | 2db3ded | 2013-05-22 14:34:04 +0000 | [diff] [blame] | 31 | GrGLProgramDesc(const GrGLProgramDesc& desc) { *this = desc; } |
| 32 | |
skia.committer@gmail.com | 2d816ad | 2013-05-23 07:01:22 +0000 | [diff] [blame] | 33 | // Returns this as a uint32_t array to be used as a key in the program cache. |
bsalomon@google.com | 2db3ded | 2013-05-22 14:34:04 +0000 | [diff] [blame] | 34 | const uint32_t* asKey() const { |
bsalomon | 848faf0 | 2014-07-11 10:01:02 -0700 | [diff] [blame] | 35 | return reinterpret_cast<const uint32_t*>(fKey.begin()); |
bsalomon@google.com | 31ec798 | 2013-03-27 18:14:57 +0000 | [diff] [blame] | 36 | } |
| 37 | |
bsalomon@google.com | 2db3ded | 2013-05-22 14:34:04 +0000 | [diff] [blame] | 38 | // Gets the number of bytes in asKey(). It will be a 4-byte aligned value. When comparing two |
| 39 | // keys the size of either key can be used with memcmp() since the lengths themselves begin the |
| 40 | // keys and thus the memcmp will exit early if the keys are of different lengths. |
| 41 | uint32_t keyLength() const { return *this->atOffset<uint32_t, kLengthOffset>(); } |
| 42 | |
| 43 | // Gets the a checksum of the key. Can be used as a hash value for a fast lookup in a cache. |
| 44 | uint32_t getChecksum() const { return *this->atOffset<uint32_t, kChecksumOffset>(); } |
bsalomon@google.com | 31ec798 | 2013-03-27 18:14:57 +0000 | [diff] [blame] | 45 | |
| 46 | // For unit testing. |
bsalomon | 848faf0 | 2014-07-11 10:01:02 -0700 | [diff] [blame] | 47 | bool setRandom(SkRandom*, |
bsalomon@google.com | 31ec798 | 2013-03-27 18:14:57 +0000 | [diff] [blame] | 48 | const GrGpuGL* gpu, |
bsalomon@google.com | 2db3ded | 2013-05-22 14:34:04 +0000 | [diff] [blame] | 49 | const GrRenderTarget* dummyDstRenderTarget, |
| 50 | const GrTexture* dummyDstCopyTexture, |
joshualitt | bd769d0 | 2014-09-04 08:56:46 -0700 | [diff] [blame^] | 51 | const GrEffectStage* geometryProcessor, |
bsalomon@google.com | 2db3ded | 2013-05-22 14:34:04 +0000 | [diff] [blame] | 52 | const GrEffectStage* stages[], |
| 53 | int numColorStages, |
| 54 | int numCoverageStages, |
jvanverth@google.com | 054ae99 | 2013-04-01 20:06:51 +0000 | [diff] [blame] | 55 | int currAttribIndex); |
bsalomon@google.com | 31ec798 | 2013-03-27 18:14:57 +0000 | [diff] [blame] | 56 | |
| 57 | /** |
| 58 | * Builds a program descriptor from a GrDrawState. Whether the primitive type is points, the |
bsalomon@google.com | 2db3ded | 2013-05-22 14:34:04 +0000 | [diff] [blame] | 59 | * output of GrDrawState::getBlendOpts, and the caps of the GrGpuGL are also inputs. It also |
bsalomon@google.com | 2c84aa3 | 2013-06-06 20:28:57 +0000 | [diff] [blame] | 60 | * outputs the color and coverage stages referenced by the generated descriptor. This may |
| 61 | * not contain all stages from the draw state and coverage stages from the drawState may |
| 62 | * be treated as color stages in the output. |
bsalomon@google.com | 31ec798 | 2013-03-27 18:14:57 +0000 | [diff] [blame] | 63 | */ |
bsalomon | 848faf0 | 2014-07-11 10:01:02 -0700 | [diff] [blame] | 64 | static bool Build(const GrDrawState&, |
commit-bot@chromium.org | 0a6fe71 | 2014-04-23 19:26:26 +0000 | [diff] [blame] | 65 | GrGpu::DrawType drawType, |
bsalomon@google.com | 31ec798 | 2013-03-27 18:14:57 +0000 | [diff] [blame] | 66 | GrDrawState::BlendOptFlags, |
| 67 | GrBlendCoeff srcCoeff, |
| 68 | GrBlendCoeff dstCoeff, |
| 69 | const GrGpuGL* gpu, |
bsalomon@google.com | 26e18b5 | 2013-03-29 19:22:36 +0000 | [diff] [blame] | 70 | const GrDeviceCoordTexture* dstCopy, |
joshualitt | bd769d0 | 2014-09-04 08:56:46 -0700 | [diff] [blame^] | 71 | const GrEffectStage** outGeometryProcessor, |
bsalomon@google.com | 2c84aa3 | 2013-06-06 20:28:57 +0000 | [diff] [blame] | 72 | SkTArray<const GrEffectStage*, true>* outColorStages, |
| 73 | SkTArray<const GrEffectStage*, true>* outCoverageStages, |
bsalomon@google.com | 31ec798 | 2013-03-27 18:14:57 +0000 | [diff] [blame] | 74 | GrGLProgramDesc* outDesc); |
| 75 | |
joshualitt | bd769d0 | 2014-09-04 08:56:46 -0700 | [diff] [blame^] | 76 | bool hasGeometryProcessor() const { |
| 77 | return SkToBool(this->getHeader().fHasGeometryProcessor); |
| 78 | } |
| 79 | |
bsalomon@google.com | 2db3ded | 2013-05-22 14:34:04 +0000 | [diff] [blame] | 80 | int numColorEffects() const { |
bsalomon@google.com | 2db3ded | 2013-05-22 14:34:04 +0000 | [diff] [blame] | 81 | return this->getHeader().fColorEffectCnt; |
| 82 | } |
| 83 | |
| 84 | int numCoverageEffects() const { |
bsalomon@google.com | 2db3ded | 2013-05-22 14:34:04 +0000 | [diff] [blame] | 85 | return this->getHeader().fCoverageEffectCnt; |
| 86 | } |
| 87 | |
| 88 | int numTotalEffects() const { return this->numColorEffects() + this->numCoverageEffects(); } |
| 89 | |
| 90 | GrGLProgramDesc& operator= (const GrGLProgramDesc& other); |
| 91 | |
| 92 | bool operator== (const GrGLProgramDesc& other) const { |
bsalomon@google.com | 2db3ded | 2013-05-22 14:34:04 +0000 | [diff] [blame] | 93 | // The length is masked as a hint to the compiler that the address will be 4 byte aligned. |
| 94 | return 0 == memcmp(this->asKey(), other.asKey(), this->keyLength() & ~0x3); |
| 95 | } |
| 96 | |
| 97 | bool operator!= (const GrGLProgramDesc& other) const { |
| 98 | return !(*this == other); |
| 99 | } |
| 100 | |
| 101 | static bool Less(const GrGLProgramDesc& a, const GrGLProgramDesc& b) { |
| 102 | return memcmp(a.asKey(), b.asKey(), a.keyLength() & ~0x3) < 0; |
| 103 | } |
| 104 | |
bsalomon@google.com | 31ec798 | 2013-03-27 18:14:57 +0000 | [diff] [blame] | 105 | private: |
| 106 | // Specifies where the initial color comes from before the stages are applied. |
| 107 | enum ColorInput { |
egdaniel | 842b086 | 2014-09-02 10:01:30 -0700 | [diff] [blame] | 108 | kAllOnes_ColorInput, |
bsalomon@google.com | 31ec798 | 2013-03-27 18:14:57 +0000 | [diff] [blame] | 109 | kAttribute_ColorInput, |
| 110 | kUniform_ColorInput, |
| 111 | |
| 112 | kColorInputCnt |
| 113 | }; |
bsalomon@google.com | 31ec798 | 2013-03-27 18:14:57 +0000 | [diff] [blame] | 114 | |
bsalomon@google.com | 5920ac2 | 2013-04-19 13:14:45 +0000 | [diff] [blame] | 115 | enum CoverageOutput { |
| 116 | // modulate color and coverage, write result as the color output. |
| 117 | kModulate_CoverageOutput, |
| 118 | // Writes color*coverage as the primary color output and also writes coverage as the |
| 119 | // secondary output. Only set if dual source blending is supported. |
| 120 | kSecondaryCoverage_CoverageOutput, |
| 121 | // Writes color*coverage as the primary color output and also writes coverage * (1 - colorA) |
| 122 | // as the secondary output. Only set if dual source blending is supported. |
| 123 | kSecondaryCoverageISA_CoverageOutput, |
| 124 | // Writes color*coverage as the primary color output and also writes coverage * |
| 125 | // (1 - colorRGB) as the secondary output. Only set if dual source blending is supported. |
| 126 | kSecondaryCoverageISC_CoverageOutput, |
| 127 | // Combines the coverage, dst, and color as coverage * color + (1 - coverage) * dst. This |
bsalomon@google.com | b515881 | 2013-05-13 18:50:25 +0000 | [diff] [blame] | 128 | // can only be set if fDstReadKey is non-zero. |
bsalomon@google.com | 5920ac2 | 2013-04-19 13:14:45 +0000 | [diff] [blame] | 129 | kCombineWithDst_CoverageOutput, |
| 130 | |
| 131 | kCoverageOutputCnt |
bsalomon@google.com | 31ec798 | 2013-03-27 18:14:57 +0000 | [diff] [blame] | 132 | }; |
| 133 | |
bsalomon@google.com | 5920ac2 | 2013-04-19 13:14:45 +0000 | [diff] [blame] | 134 | static bool CoverageOutputUsesSecondaryOutput(CoverageOutput co) { |
| 135 | switch (co) { |
| 136 | case kSecondaryCoverage_CoverageOutput: // fallthru |
| 137 | case kSecondaryCoverageISA_CoverageOutput: |
| 138 | case kSecondaryCoverageISC_CoverageOutput: |
| 139 | return true; |
| 140 | default: |
| 141 | return false; |
| 142 | } |
| 143 | } |
| 144 | |
bsalomon@google.com | 2db3ded | 2013-05-22 14:34:04 +0000 | [diff] [blame] | 145 | struct KeyHeader { |
bsalomon | 848faf0 | 2014-07-11 10:01:02 -0700 | [diff] [blame] | 146 | uint8_t fDstReadKey; // set by GrGLShaderBuilder if there |
bsalomon@google.com | 26e18b5 | 2013-03-29 19:22:36 +0000 | [diff] [blame] | 147 | // are effects that must read the dst. |
| 148 | // Otherwise, 0. |
bsalomon | 848faf0 | 2014-07-11 10:01:02 -0700 | [diff] [blame] | 149 | uint8_t fFragPosKey; // set by GrGLShaderBuilder if there are |
bsalomon@google.com | b515881 | 2013-05-13 18:50:25 +0000 | [diff] [blame] | 150 | // effects that read the fragment position. |
| 151 | // Otherwise, 0. |
commit-bot@chromium.org | 949eef0 | 2013-10-01 18:43:29 +0000 | [diff] [blame] | 152 | ColorInput fColorInput : 8; |
| 153 | ColorInput fCoverageInput : 8; |
| 154 | CoverageOutput fCoverageOutput : 8; |
jvanverth@google.com | 054ae99 | 2013-04-01 20:06:51 +0000 | [diff] [blame] | 155 | |
kkinnunen | ec56e45 | 2014-08-25 22:21:16 -0700 | [diff] [blame] | 156 | SkBool8 fRequiresVertexShader; |
bsalomon@google.com | 2db3ded | 2013-05-22 14:34:04 +0000 | [diff] [blame] | 157 | SkBool8 fEmitsPointSize; |
bsalomon@google.com | 31ec798 | 2013-03-27 18:14:57 +0000 | [diff] [blame] | 158 | |
bsalomon@google.com | 2db3ded | 2013-05-22 14:34:04 +0000 | [diff] [blame] | 159 | // To enable experimental geometry shader code (not for use in |
| 160 | // production) |
| 161 | #if GR_GL_EXPERIMENTAL_GS |
| 162 | SkBool8 fExperimentalGS; |
| 163 | #endif |
| 164 | |
| 165 | int8_t fPositionAttributeIndex; |
| 166 | int8_t fLocalCoordAttributeIndex; |
| 167 | int8_t fColorAttributeIndex; |
| 168 | int8_t fCoverageAttributeIndex; |
skia.committer@gmail.com | 2d816ad | 2013-05-23 07:01:22 +0000 | [diff] [blame] | 169 | |
joshualitt | bd769d0 | 2014-09-04 08:56:46 -0700 | [diff] [blame^] | 170 | SkBool8 fHasGeometryProcessor; |
bsalomon@google.com | 2db3ded | 2013-05-22 14:34:04 +0000 | [diff] [blame] | 171 | int8_t fColorEffectCnt; |
| 172 | int8_t fCoverageEffectCnt; |
| 173 | }; |
| 174 | |
bsalomon | 848faf0 | 2014-07-11 10:01:02 -0700 | [diff] [blame] | 175 | // The key, stored in fKey, is composed of five parts: |
| 176 | // 1. uint32_t for total key length. |
| 177 | // 2. uint32_t for a checksum. |
| 178 | // 3. Header struct defined above. |
bsalomon | 929f29a | 2014-07-17 07:55:11 -0700 | [diff] [blame] | 179 | // 4. An array of offsets to effect keys and their sizes (see 5). uint16_t for each |
| 180 | // offset and size. |
bsalomon | 848faf0 | 2014-07-11 10:01:02 -0700 | [diff] [blame] | 181 | // 5. per-effect keys. Each effect's key is a variable length array of uint32_t. |
bsalomon@google.com | 2db3ded | 2013-05-22 14:34:04 +0000 | [diff] [blame] | 182 | enum { |
bsalomon | 929f29a | 2014-07-17 07:55:11 -0700 | [diff] [blame] | 183 | // Part 1. |
bsalomon@google.com | 2db3ded | 2013-05-22 14:34:04 +0000 | [diff] [blame] | 184 | kLengthOffset = 0, |
bsalomon | 929f29a | 2014-07-17 07:55:11 -0700 | [diff] [blame] | 185 | // Part 2. |
bsalomon@google.com | 2db3ded | 2013-05-22 14:34:04 +0000 | [diff] [blame] | 186 | kChecksumOffset = kLengthOffset + sizeof(uint32_t), |
bsalomon | 929f29a | 2014-07-17 07:55:11 -0700 | [diff] [blame] | 187 | // Part 3. |
bsalomon@google.com | 2db3ded | 2013-05-22 14:34:04 +0000 | [diff] [blame] | 188 | kHeaderOffset = kChecksumOffset + sizeof(uint32_t), |
| 189 | kHeaderSize = SkAlign4(sizeof(KeyHeader)), |
bsalomon | 929f29a | 2014-07-17 07:55:11 -0700 | [diff] [blame] | 190 | // Part 4. |
| 191 | // This is the offset in the overall key to the array of per-effect offset,length pairs. |
| 192 | kEffectKeyOffsetsAndLengthOffset = kHeaderOffset + kHeaderSize, |
bsalomon@google.com | 2db3ded | 2013-05-22 14:34:04 +0000 | [diff] [blame] | 193 | }; |
| 194 | |
| 195 | template<typename T, size_t OFFSET> T* atOffset() { |
bsalomon | 848faf0 | 2014-07-11 10:01:02 -0700 | [diff] [blame] | 196 | return reinterpret_cast<T*>(reinterpret_cast<intptr_t>(fKey.begin()) + OFFSET); |
bsalomon@google.com | 2db3ded | 2013-05-22 14:34:04 +0000 | [diff] [blame] | 197 | } |
| 198 | |
| 199 | template<typename T, size_t OFFSET> const T* atOffset() const { |
bsalomon | 848faf0 | 2014-07-11 10:01:02 -0700 | [diff] [blame] | 200 | return reinterpret_cast<const T*>(reinterpret_cast<intptr_t>(fKey.begin()) + OFFSET); |
bsalomon@google.com | 2db3ded | 2013-05-22 14:34:04 +0000 | [diff] [blame] | 201 | } |
| 202 | |
bsalomon@google.com | 2db3ded | 2013-05-22 14:34:04 +0000 | [diff] [blame] | 203 | KeyHeader* header() { return this->atOffset<KeyHeader, kHeaderOffset>(); } |
bsalomon | 848faf0 | 2014-07-11 10:01:02 -0700 | [diff] [blame] | 204 | |
bsalomon | 929f29a | 2014-07-17 07:55:11 -0700 | [diff] [blame] | 205 | // Shared code between setRandom() and Build(). |
| 206 | static bool GetEffectKeyAndUpdateStats(const GrEffectStage& stage, |
| 207 | const GrGLCaps& caps, |
| 208 | bool useExplicitLocalCoords, |
| 209 | GrEffectKeyBuilder* b, |
| 210 | uint16_t* effectKeySize, |
| 211 | bool* setTrueIfReadsDst, |
| 212 | bool* setTrueIfReadsPos, |
kkinnunen | ec56e45 | 2014-08-25 22:21:16 -0700 | [diff] [blame] | 213 | bool* setTrueIfRequiresVertexShader); |
bsalomon | 929f29a | 2014-07-17 07:55:11 -0700 | [diff] [blame] | 214 | |
bsalomon | 848faf0 | 2014-07-11 10:01:02 -0700 | [diff] [blame] | 215 | void finalize(); |
bsalomon@google.com | 2db3ded | 2013-05-22 14:34:04 +0000 | [diff] [blame] | 216 | |
| 217 | const KeyHeader& getHeader() const { return *this->atOffset<KeyHeader, kHeaderOffset>(); } |
bsalomon@google.com | 2db3ded | 2013-05-22 14:34:04 +0000 | [diff] [blame] | 218 | |
bsalomon | 848faf0 | 2014-07-11 10:01:02 -0700 | [diff] [blame] | 219 | /** Used to provide effects' keys to their emitCode() function. */ |
| 220 | class EffectKeyProvider { |
| 221 | public: |
| 222 | enum EffectType { |
joshualitt | bd769d0 | 2014-09-04 08:56:46 -0700 | [diff] [blame^] | 223 | kGeometryProcessor_EffectType, |
bsalomon | 848faf0 | 2014-07-11 10:01:02 -0700 | [diff] [blame] | 224 | kColor_EffectType, |
| 225 | kCoverage_EffectType, |
| 226 | }; |
bsalomon@google.com | 2db3ded | 2013-05-22 14:34:04 +0000 | [diff] [blame] | 227 | |
bsalomon | 848faf0 | 2014-07-11 10:01:02 -0700 | [diff] [blame] | 228 | EffectKeyProvider(const GrGLProgramDesc* desc, EffectType type) : fDesc(desc) { |
joshualitt | bd769d0 | 2014-09-04 08:56:46 -0700 | [diff] [blame^] | 229 | switch (type) { |
| 230 | case kGeometryProcessor_EffectType: |
| 231 | // there can be only one |
| 232 | fBaseIndex = 0; |
| 233 | break; |
| 234 | case kColor_EffectType: |
| 235 | fBaseIndex = desc->hasGeometryProcessor() ? 1 : 0; |
| 236 | break; |
| 237 | case kCoverage_EffectType: |
| 238 | fBaseIndex = desc->numColorEffects() + (desc->hasGeometryProcessor() ? 1 : 0); |
| 239 | break; |
| 240 | } |
bsalomon | 848faf0 | 2014-07-11 10:01:02 -0700 | [diff] [blame] | 241 | } |
| 242 | |
bsalomon | 63e99f7 | 2014-07-21 08:03:14 -0700 | [diff] [blame] | 243 | GrEffectKey get(int index) const { |
| 244 | const uint16_t* offsetsAndLengths = reinterpret_cast<const uint16_t*>( |
bsalomon | 929f29a | 2014-07-17 07:55:11 -0700 | [diff] [blame] | 245 | fDesc->fKey.begin() + kEffectKeyOffsetsAndLengthOffset); |
| 246 | // We store two uint16_ts per effect, one for the offset to the effect's key and one for |
| 247 | // its length. Here we just need the offset. |
bsalomon | 63e99f7 | 2014-07-21 08:03:14 -0700 | [diff] [blame] | 248 | uint16_t offset = offsetsAndLengths[2 * (fBaseIndex + index) + 0]; |
| 249 | uint16_t length = offsetsAndLengths[2 * (fBaseIndex + index) + 1]; |
| 250 | // Currently effects must add to the key in units of uint32_t. |
| 251 | SkASSERT(0 == (length % sizeof(uint32_t))); |
| 252 | return GrEffectKey(reinterpret_cast<const uint32_t*>(fDesc->fKey.begin() + offset), |
| 253 | length / sizeof(uint32_t)); |
bsalomon | 848faf0 | 2014-07-11 10:01:02 -0700 | [diff] [blame] | 254 | } |
| 255 | private: |
| 256 | const GrGLProgramDesc* fDesc; |
| 257 | int fBaseIndex; |
bsalomon@google.com | 2db3ded | 2013-05-22 14:34:04 +0000 | [diff] [blame] | 258 | }; |
| 259 | |
bsalomon | 848faf0 | 2014-07-11 10:01:02 -0700 | [diff] [blame] | 260 | enum { |
| 261 | kMaxPreallocEffects = 8, |
| 262 | kIntsPerEffect = 4, // This is an overestimate of the average effect key size. |
bsalomon | 929f29a | 2014-07-17 07:55:11 -0700 | [diff] [blame] | 263 | kPreAllocSize = kEffectKeyOffsetsAndLengthOffset + |
bsalomon | 848faf0 | 2014-07-11 10:01:02 -0700 | [diff] [blame] | 264 | kMaxPreallocEffects * sizeof(uint32_t) * kIntsPerEffect, |
| 265 | }; |
bsalomon@google.com | 31ec798 | 2013-03-27 18:14:57 +0000 | [diff] [blame] | 266 | |
bsalomon | 848faf0 | 2014-07-11 10:01:02 -0700 | [diff] [blame] | 267 | SkSTArray<kPreAllocSize, uint8_t, true> fKey; |
| 268 | |
| 269 | // GrGLProgram and GrGLShaderBuilder read the private fields to generate code. TODO: Split out |
| 270 | // part of GrGLShaderBuilder that is used by effects so that this header doesn't need to be |
| 271 | // visible to GrGLEffects. Then make public accessors as necessary and remove friends. |
bsalomon@google.com | 31ec798 | 2013-03-27 18:14:57 +0000 | [diff] [blame] | 272 | friend class GrGLProgram; |
joshualitt | 30ba436 | 2014-08-21 20:18:45 -0700 | [diff] [blame] | 273 | friend class GrGLProgramBuilder; |
| 274 | friend class GrGLFullProgramBuilder; |
| 275 | friend class GrGLFragmentOnlyProgramBuilder; |
| 276 | friend class GrGLVertexShaderBuilder; |
| 277 | friend class GrGLFragmentShaderBuilder; |
| 278 | friend class GrGLGeometryShaderBuilder; |
bsalomon@google.com | 31ec798 | 2013-03-27 18:14:57 +0000 | [diff] [blame] | 279 | }; |
| 280 | |
| 281 | #endif |