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

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: memory leaks fixed 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
« no previous file with comments | « src/gpu/gl/GrGLGeometryProcessor.h ('k') | src/gpu/gl/GrGLProgram.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
117 */ 118 */
118 virtual void emitCode(GrGLFPBuilder* builder, 119 virtual void emitCode(GrGLFPBuilder* builder,
119 const GrFragmentProcessor& effect, 120 const GrFragmentProcessor& effect,
120 const GrProcessorKey& key, 121 const GrProcessorKey& key,
121 const char* outputColor, 122 const char* outputColor,
122 const char* inputColor, 123 const char* inputColor,
123 const TransformedCoordsArray& coords, 124 const TransformedCoordsArray& coords,
124 const TextureSamplerArray& samplers) = 0; 125 const TextureSamplerArray& samplers) = 0;
125 126
126 private: 127 private:
127 typedef GrGLProcessor INHERITED; 128 typedef GrGLProcessor INHERITED;
128 }; 129 };
129 130
130 #endif 131 #endif
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLGeometryProcessor.h ('k') | src/gpu/gl/GrGLProgram.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698