OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 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 GrGLProgramDesc_DEFINED | 8 #ifndef GrGLProgramDesc_DEFINED |
9 #define GrGLProgramDesc_DEFINED | 9 #define GrGLProgramDesc_DEFINED |
10 | 10 |
(...skipping 29 matching lines...) Expand all Loading... |
40 | 40 |
41 /** | 41 /** |
42 * Builds a GL specific program descriptor | 42 * Builds a GL specific program descriptor |
43 * | 43 * |
44 * @param GrPrimitiveProcessor The geometry | 44 * @param GrPrimitiveProcessor The geometry |
45 * @param GrPipeline The optimized drawstate. The descriptor will represen
t a program | 45 * @param GrPipeline The optimized drawstate. The descriptor will represen
t a program |
46 * which this optstate can use to draw with. The opt
state contains | 46 * which this optstate can use to draw with. The opt
state contains |
47 * general draw information, as well as the specific
color, geometry, | 47 * general draw information, as well as the specific
color, geometry, |
48 * and coverage stages which will be used to generate
the GL Program for | 48 * and coverage stages which will be used to generate
the GL Program for |
49 * this optstate. | 49 * this optstate. |
| 50 * @param DescInfo A descriptor info struct, generated by the optstate, whi
ch contains a number |
| 51 * of important facts about the program the built descripto
r will represent |
50 * @param GrGLGpu A GL Gpu, the caps and Gpu object are used to output proc
essor specific | 52 * @param GrGLGpu A GL Gpu, the caps and Gpu object are used to output proc
essor specific |
51 * parts of the descriptor. | 53 * parts of the descriptor. |
52 * @param GrDeviceCoordTexture A dstCopy texture, which may be null if fram
e buffer fetch is | 54 * @param GrDeviceCoordTexture A dstCopy texture, which may be null if fram
e buffer fetch is |
53 * supported | 55 * supported |
54 * @param GrProgramDesc The built and finalized descriptor | 56 * @param GrProgramDesc The built and finalized descriptor |
55 **/ | 57 **/ |
56 static bool Build(GrProgramDesc*, | 58 static bool Build(GrProgramDesc*, |
57 const GrPrimitiveProcessor&, | 59 const GrPrimitiveProcessor&, |
58 const GrPipeline&, | 60 const GrPipeline&, |
| 61 const GrProgramDesc::DescInfo&, |
59 const GrGLGpu*, | 62 const GrGLGpu*, |
60 const GrBatchTracker&); | 63 const GrBatchTracker&); |
61 }; | 64 }; |
62 | 65 |
63 #endif | 66 #endif |
OLD | NEW |