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

Side by Side Diff: src/gpu/gl/builders/GrGLNvprProgramBuilder.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
OLDNEW
1 /* 1 /*
2 * Copyright 2014 Google Inc. 2 * Copyright 2014 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 GrGLNvprProgramBuilder_DEFINED 8 #ifndef GrGLNvprProgramBuilder_DEFINED
9 #define GrGLNvprProgramBuilder_DEFINED 9 #define GrGLNvprProgramBuilder_DEFINED
10 10
(...skipping 10 matching lines...) Expand all
21 struct SeparableVaryingInfo { 21 struct SeparableVaryingInfo {
22 GrGLShaderVar fVariable; 22 GrGLShaderVar fVariable;
23 GrGLint fLocation; 23 GrGLint fLocation;
24 }; 24 };
25 25
26 typedef GrTAllocator<SeparableVaryingInfo> SeparableVaryingInfoArray; 26 typedef GrTAllocator<SeparableVaryingInfo> SeparableVaryingInfoArray;
27 27
28 virtual GrGLProgram* createProgram(GrGLuint programID); 28 virtual GrGLProgram* createProgram(GrGLuint programID);
29 29
30 private: 30 private:
31 virtual void emitTransforms(const GrProcessorStage&, 31 virtual void emitTransforms(const GrFragmentStage&,
32 GrGLProcessor::TransformedCoordsArray* outCoords , 32 GrGLProcessor::TransformedCoordsArray* outCoords ,
33 GrGLInstalledProcessors*) SK_OVERRIDE; 33 GrGLInstalledFragProc*) SK_OVERRIDE;
34 34
35 typedef GrGLInstalledProcessors::ShaderVarHandle ShaderVarHandle; 35 typedef GrGLInstalledFragProc::ShaderVarHandle ShaderVarHandle;
36 36
37 /** 37 /**
38 * Add a separable varying input variable to the current program. 38 * Add a separable varying input variable to the current program.
39 * A separable varying (fragment shader input) is a varying that can be used also when vertex 39 * A separable varying (fragment shader input) is a varying that can be used also when vertex
40 * shaders are not used. With a vertex shader, the operation is same as with other 40 * shaders are not used. With a vertex shader, the operation is same as with other
41 * varyings. Without a vertex shader, such as with NV_path_rendering, GL API s are used to 41 * varyings. Without a vertex shader, such as with NV_path_rendering, GL API s are used to
42 * populate the variable. The APIs can refer to the variable through the ret urned handle. 42 * populate the variable. The APIs can refer to the variable through the ret urned handle.
43 */ 43 */
44 ShaderVarHandle addSeparableVarying(GrSLType type, 44 ShaderVarHandle addSeparableVarying(GrSLType type,
45 const char* name, 45 const char* name,
46 const char** vsOutName, 46 const char** vsOutName,
47 const char** fsInName); 47 const char** fsInName);
48 48
49 void resolveSeparableVaryings(GrGLuint programId); 49 void resolveSeparableVaryings(GrGLuint programId);
50 50
51 SeparableVaryingInfoArray fSeparableVaryingInfos; 51 SeparableVaryingInfoArray fSeparableVaryingInfos;
52 52
53 typedef GrGLProgramBuilder INHERITED; 53 typedef GrGLProgramBuilder INHERITED;
54 }; 54 };
55 55
56 #endif 56 #endif
OLDNEW
« no previous file with comments | « src/gpu/gl/builders/GrGLLegacyNvprProgramBuilder.cpp ('k') | src/gpu/gl/builders/GrGLNvprProgramBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698