| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 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 GrGLProcessor_DEFINED | 8 #ifndef GrGLProcessor_DEFINED |
| 9 #define GrGLProcessor_DEFINED | 9 #define GrGLProcessor_DEFINED |
| 10 | 10 |
| 11 #include "GrBackendProcessorFactory.h" | 11 #include "GrBackendProcessorFactory.h" |
| 12 #include "GrGLProgramDataManager.h" | 12 #include "GrGLProgramEffects.h" |
| 13 #include "GrTextureAccess.h" | 13 #include "GrGLShaderVar.h" |
| 14 #include "GrGLSL.h" |
| 14 | 15 |
| 15 /** @file | 16 /** @file |
| 16 This file contains specializations for OpenGL of the shader stages declared
in | 17 This file contains specializations for OpenGL of the shader stages declared
in |
| 17 include/gpu/GrProcessor.h. Objects of type GrGLProcessor are responsible for
emitting the | 18 include/gpu/GrProcessor.h. Objects of type GrGLProcessor are responsible for
emitting the |
| 18 GLSL code that implements a GrProcessor and for uploading uniforms at draw t
ime. If they don't | 19 GLSL code that implements a GrProcessor and for uploading uniforms at draw t
ime. If they don't |
| 19 always emit the same GLSL code, they must have a function: | 20 always emit the same GLSL code, they must have a function: |
| 20 static inline void GenKey(const GrProcessor&, const GrGLCaps&, GrProcess
orKeyBuilder*) | 21 static inline void GenKey(const GrProcessor&, const GrGLCaps&, GrProcess
orKeyBuilder*) |
| 21 that is used to implement a program cache. When two GrProcessors produce the
same key this means | 22 that is used to implement a program cache. When two GrProcessors produce the
same key this means |
| 22 that their GrGLProcessors would emit the same GLSL code. | 23 that their GrGLProcessors would emit the same GLSL code. |
| 23 | 24 |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 const char* outputColor, | 120 const char* outputColor, |
| 120 const char* inputColor, | 121 const char* inputColor, |
| 121 const TransformedCoordsArray& coords, | 122 const TransformedCoordsArray& coords, |
| 122 const TextureSamplerArray& samplers) = 0; | 123 const TextureSamplerArray& samplers) = 0; |
| 123 | 124 |
| 124 private: | 125 private: |
| 125 typedef GrGLProcessor INHERITED; | 126 typedef GrGLProcessor INHERITED; |
| 126 }; | 127 }; |
| 127 | 128 |
| 128 #endif | 129 #endif |
| OLD | NEW |