| 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 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 const char* output) SK_OVERRIDE; | 260 const char* output) SK_OVERRIDE; |
| 261 | 261 |
| 262 | 262 |
| 263 // Handles for program uniforms (other than per-effect uniforms) | 263 // Handles for program uniforms (other than per-effect uniforms) |
| 264 struct BuiltinUniformHandles { | 264 struct BuiltinUniformHandles { |
| 265 UniformHandle fRTAdjustmentUni; | 265 UniformHandle fRTAdjustmentUni; |
| 266 | 266 |
| 267 // We use the render target height to provide a y-down frag coord when s
pecifying | 267 // We use the render target height to provide a y-down frag coord when s
pecifying |
| 268 // origin_upper_left is not supported. | 268 // origin_upper_left is not supported. |
| 269 UniformHandle fRTHeightUni; | 269 UniformHandle fRTHeightUni; |
| 270 | |
| 271 // Uniforms for computing texture coords to do the dst-copy lookup | |
| 272 UniformHandle fDstCopyTopLeftUni; | |
| 273 UniformHandle fDstCopyScaleUni; | |
| 274 UniformHandle fDstCopySamplerUni; | |
| 275 }; | 270 }; |
| 276 | 271 |
| 277 protected: | 272 protected: |
| 278 typedef GrGLProgramDataManager::UniformInfo UniformInfo; | 273 typedef GrGLProgramDataManager::UniformInfo UniformInfo; |
| 279 typedef GrGLProgramDataManager::UniformInfoArray UniformInfoArray; | 274 typedef GrGLProgramDataManager::UniformInfoArray UniformInfoArray; |
| 280 | 275 |
| 281 static GrGLProgramBuilder* CreateProgramBuilder(const DrawArgs&, GrGLGpu*); | 276 static GrGLProgramBuilder* CreateProgramBuilder(const DrawArgs&, GrGLGpu*); |
| 282 | 277 |
| 283 GrGLProgramBuilder(GrGLGpu*, const DrawArgs&); | 278 GrGLProgramBuilder(GrGLGpu*, const DrawArgs&); |
| 284 | 279 |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 391 UniformInfoArray fUniforms; | 386 UniformInfoArray fUniforms; |
| 392 GrGLPrimitiveProcessor::TransformsIn fCoordTransforms; | 387 GrGLPrimitiveProcessor::TransformsIn fCoordTransforms; |
| 393 GrGLPrimitiveProcessor::TransformsOut fOutCoords; | 388 GrGLPrimitiveProcessor::TransformsOut fOutCoords; |
| 394 | 389 |
| 395 friend class GrGLShaderBuilder; | 390 friend class GrGLShaderBuilder; |
| 396 friend class GrGLVertexBuilder; | 391 friend class GrGLVertexBuilder; |
| 397 friend class GrGLFragmentShaderBuilder; | 392 friend class GrGLFragmentShaderBuilder; |
| 398 friend class GrGLGeometryBuilder; | 393 friend class GrGLGeometryBuilder; |
| 399 }; | 394 }; |
| 400 #endif | 395 #endif |
| OLD | NEW |