| 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; |
| 270 }; | 275 }; |
| 271 | 276 |
| 272 protected: | 277 protected: |
| 273 typedef GrGLProgramDataManager::UniformInfo UniformInfo; | 278 typedef GrGLProgramDataManager::UniformInfo UniformInfo; |
| 274 typedef GrGLProgramDataManager::UniformInfoArray UniformInfoArray; | 279 typedef GrGLProgramDataManager::UniformInfoArray UniformInfoArray; |
| 275 | 280 |
| 276 static GrGLProgramBuilder* CreateProgramBuilder(const DrawArgs&, GrGLGpu*); | 281 static GrGLProgramBuilder* CreateProgramBuilder(const DrawArgs&, GrGLGpu*); |
| 277 | 282 |
| 278 GrGLProgramBuilder(GrGLGpu*, const DrawArgs&); | 283 GrGLProgramBuilder(GrGLGpu*, const DrawArgs&); |
| 279 | 284 |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 386 UniformInfoArray fUniforms; | 391 UniformInfoArray fUniforms; |
| 387 GrGLPrimitiveProcessor::TransformsIn fCoordTransforms; | 392 GrGLPrimitiveProcessor::TransformsIn fCoordTransforms; |
| 388 GrGLPrimitiveProcessor::TransformsOut fOutCoords; | 393 GrGLPrimitiveProcessor::TransformsOut fOutCoords; |
| 389 | 394 |
| 390 friend class GrGLShaderBuilder; | 395 friend class GrGLShaderBuilder; |
| 391 friend class GrGLVertexBuilder; | 396 friend class GrGLVertexBuilder; |
| 392 friend class GrGLFragmentShaderBuilder; | 397 friend class GrGLFragmentShaderBuilder; |
| 393 friend class GrGLGeometryBuilder; | 398 friend class GrGLGeometryBuilder; |
| 394 }; | 399 }; |
| 395 #endif | 400 #endif |
| OLD | NEW |