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