Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(207)

Side by Side Diff: src/gpu/gl/GrGLProcessor.h

Issue 637003003: Opt state takes a GP instead of a GeometryStage (Closed) Base URL: https://skia.googlesource.com/skia.git@builder_cleanup
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 @param outputColor A predefined vec4 in the FS in which the stage shoul d place its output 105 @param outputColor A predefined vec4 in the FS in which the stage shoul d place its output
106 color (or coverage). 106 color (or coverage).
107 @param inputColor A vec4 that holds the input color to the stage in th e FS. This may be 107 @param inputColor A vec4 that holds the input color to the stage in th e FS. This may be
108 NULL in which case the implied input is solid white (all ones). 108 NULL in which case the implied input is solid white (all ones).
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 */ 116 */
116 virtual void emitCode(GrGLProgramBuilder* builder, 117 virtual void emitCode(GrGLProgramBuilder* builder,
117 const GrFragmentProcessor& effect, 118 const GrFragmentProcessor& effect,
118 const GrProcessorKey& key, 119 const GrProcessorKey& key,
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698