OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 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 | 8 |
9 #ifndef GrGLProgram_DEFINED | 9 #ifndef GrGLProgram_DEFINED |
10 #define GrGLProgram_DEFINED | 10 #define GrGLProgram_DEFINED |
11 | 11 |
12 #include "GrDrawState.h" | 12 #include "GrDrawState.h" |
13 #include "GrGLContext.h" | 13 #include "GrGLContext.h" |
14 #include "GrGLProgramDesc.h" | 14 #include "GrGLProgramDesc.h" |
15 #include "GrGLSL.h" | 15 #include "GrGLSL.h" |
16 #include "GrGLTexture.h" | 16 #include "GrGLTexture.h" |
17 #include "GrGLUniformManager.h" | 17 #include "GrGLUniformManager.h" |
18 | 18 |
19 #include "SkString.h" | 19 #include "SkString.h" |
20 #include "SkXfermode.h" | 20 #include "SkXfermode.h" |
21 | 21 |
22 class GrBinHashKeyBuilder; | 22 class GrBinHashKeyBuilder; |
23 class GrGLEffect; | 23 class GrGLEffect; |
24 class GrGLShaderBuilder; | 24 class GrGLShaderBuilder; |
25 class SkMWCRandom; | |
26 | 25 |
27 /** | 26 /** |
28 * This class manages a GPU program and records per-program information. | 27 * This class manages a GPU program and records per-program information. |
29 * We can specify the attribute locations so that they are constant | 28 * We can specify the attribute locations so that they are constant |
30 * across our shaders. But the driver determines the uniform locations | 29 * across our shaders. But the driver determines the uniform locations |
31 * at link time. We don't need to remember the sampler uniform location | 30 * at link time. We don't need to remember the sampler uniform location |
32 * because we will bind a texture slot to it and never change it | 31 * because we will bind a texture slot to it and never change it |
33 * Uniforms are program-local so we can't rely on fHWState to hold the | 32 * Uniforms are program-local so we can't rely on fHWState to hold the |
34 * previous uniform state after a program change. | 33 * previous uniform state after a program change. |
35 */ | 34 */ |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 GrGLProgramDesc fDesc; | 186 GrGLProgramDesc fDesc; |
188 const GrGLContext& fContext; | 187 const GrGLContext& fContext; |
189 | 188 |
190 GrGLUniformManager fUniformManager; | 189 GrGLUniformManager fUniformManager; |
191 UniformHandles fUniformHandles; | 190 UniformHandles fUniformHandles; |
192 | 191 |
193 typedef GrRefCnt INHERITED; | 192 typedef GrRefCnt INHERITED; |
194 }; | 193 }; |
195 | 194 |
196 #endif | 195 #endif |
OLD | NEW |