| 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 |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 @param outputColor A predefined vec4 in the FS in which the stage shoul
d place its output | 107 @param outputColor A predefined vec4 in the FS in which the stage shoul
d place its output |
| 108 color (or coverage). | 108 color (or coverage). |
| 109 @param inputColor A vec4 that holds the input color to the stage in th
e FS. This may be | 109 @param inputColor A vec4 that holds the input color to the stage in th
e FS. This may be |
| 110 NULL in which case the implied input is solid white
(all ones). | 110 NULL in which case the implied input is solid white
(all ones). |
| 111 TODO: Better system for communicating optimization i
nfo (e.g. input | 111 TODO: Better system for communicating optimization i
nfo (e.g. input |
| 112 color is solid white, trans black, known to be opaqu
e, etc.) that allows | 112 color is solid white, trans black, known to be opaqu
e, etc.) that allows |
| 113 the effect to communicate back similar known info ab
out its output. | 113 the effect to communicate back similar known info ab
out its output. |
| 114 @param samplers Contains one entry for each GrTextureAccess of the G
rProcessor. These | 114 @param samplers Contains one entry for each GrTextureAccess of the G
rProcessor. These |
| 115 can be passed to the builder to emit texture reads i
n the generated | 115 can be passed to the builder to emit texture reads i
n the generated |
| 116 code. | 116 code. |
| 117 TODO this should take a struct | |
| 118 */ | 117 */ |
| 119 virtual void emitCode(GrGLFPBuilder* builder, | 118 virtual void emitCode(GrGLFPBuilder* builder, |
| 120 const GrFragmentProcessor& effect, | 119 const GrFragmentProcessor& effect, |
| 121 const GrProcessorKey& key, | 120 const GrProcessorKey& key, |
| 122 const char* outputColor, | 121 const char* outputColor, |
| 123 const char* inputColor, | 122 const char* inputColor, |
| 124 const TransformedCoordsArray& coords, | 123 const TransformedCoordsArray& coords, |
| 125 const TextureSamplerArray& samplers) = 0; | 124 const TextureSamplerArray& samplers) = 0; |
| 126 | 125 |
| 127 private: | 126 private: |
| 128 typedef GrGLProcessor INHERITED; | 127 typedef GrGLProcessor INHERITED; |
| 129 }; | 128 }; |
| 130 | 129 |
| 131 #endif | 130 #endif |
| OLD | NEW |