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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 GrOptDrawState The optimized drawstate. The descriptor will repr
esent a program | 45 * @param GrOptDrawState The optimized drawstate. The descriptor will repr
esent 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 | 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 | 51 * of important facts about the program the built descripto
r will represent |
52 * @param DrawType | |
53 * @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 |
54 * parts of the descriptor. | 53 * parts of the descriptor. |
55 * @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 |
56 * supported | 55 * supported |
57 * @param GrProgramDesc The built and finalized descriptor | 56 * @param GrProgramDesc The built and finalized descriptor |
58 **/ | 57 **/ |
59 static bool Build(GrProgramDesc*, | 58 static bool Build(GrProgramDesc*, |
60 const GrPrimitiveProcessor&, | 59 const GrPrimitiveProcessor&, |
61 const GrOptDrawState&, | 60 const GrOptDrawState&, |
62 const GrProgramDesc::DescInfo&, | 61 const GrProgramDesc::DescInfo&, |
63 GrGpu::DrawType, | |
64 const GrGLGpu*, | 62 const GrGLGpu*, |
65 const GrBatchTracker&); | 63 const GrBatchTracker&); |
66 }; | 64 }; |
67 | 65 |
68 #endif | 66 #endif |
OLD | NEW |