OLD | NEW |
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 GrGLProgramBuilder_DEFINED | 8 #ifndef GrGLProgramBuilder_DEFINED |
9 #define GrGLProgramBuilder_DEFINED | 9 #define GrGLProgramBuilder_DEFINED |
10 | 10 |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 const char* name, | 233 const char* name, |
234 GrGLVarying*, | 234 GrGLVarying*, |
235 GrSLPrecision fsPrecision = kDefault_GrSLPrecision) SK_OVERRIDE; | 235 GrSLPrecision fsPrecision = kDefault_GrSLPrecision) SK_OVERRIDE; |
236 | 236 |
237 void addPassThroughAttribute(const GrGeometryProcessor::GrAttribute*, | 237 void addPassThroughAttribute(const GrGeometryProcessor::GrAttribute*, |
238 const char* output) SK_OVERRIDE; | 238 const char* output) SK_OVERRIDE; |
239 | 239 |
240 | 240 |
241 // Handles for program uniforms (other than per-effect uniforms) | 241 // Handles for program uniforms (other than per-effect uniforms) |
242 struct BuiltinUniformHandles { | 242 struct BuiltinUniformHandles { |
243 UniformHandle fViewMatrixUni; | |
244 UniformHandle fRTAdjustmentUni; | 243 UniformHandle fRTAdjustmentUni; |
245 | 244 |
246 // We use the render target height to provide a y-down frag coord when s
pecifying | 245 // We use the render target height to provide a y-down frag coord when s
pecifying |
247 // origin_upper_left is not supported. | 246 // origin_upper_left is not supported. |
248 UniformHandle fRTHeightUni; | 247 UniformHandle fRTHeightUni; |
249 | 248 |
250 // Uniforms for computing texture coords to do the dst-copy lookup | 249 // Uniforms for computing texture coords to do the dst-copy lookup |
251 UniformHandle fDstCopyTopLeftUni; | 250 UniformHandle fDstCopyTopLeftUni; |
252 UniformHandle fDstCopyScaleUni; | 251 UniformHandle fDstCopyScaleUni; |
253 UniformHandle fDstCopySamplerUni; | 252 UniformHandle fDstCopySamplerUni; |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
437 SkAutoTDelete<GrGLFragmentProcessor> fGLProc; | 436 SkAutoTDelete<GrGLFragmentProcessor> fGLProc; |
438 SkSTArray<2, Transform, true> fTransforms; | 437 SkSTArray<2, Transform, true> fTransforms; |
439 }; | 438 }; |
440 | 439 |
441 struct GrGLInstalledFragProcs : public SkRefCnt { | 440 struct GrGLInstalledFragProcs : public SkRefCnt { |
442 virtual ~GrGLInstalledFragProcs(); | 441 virtual ~GrGLInstalledFragProcs(); |
443 SkSTArray<8, GrGLInstalledFragProc*, true> fProcs; | 442 SkSTArray<8, GrGLInstalledFragProc*, true> fProcs; |
444 }; | 443 }; |
445 | 444 |
446 #endif | 445 #endif |
OLD | NEW |