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 "GrGLShaderBuilder.h" | 15 #include "GrGLShaderBuilder.h" |
16 #include "GrGLSL.h" | 16 #include "GrGLSL.h" |
17 #include "GrGLTexture.h" | 17 #include "GrGLTexture.h" |
18 #include "GrGLUniformManager.h" | 18 #include "GrGLUniformManager.h" |
19 | 19 |
20 #include "SkString.h" | 20 #include "SkString.h" |
21 #include "SkXfermode.h" | 21 #include "SkXfermode.h" |
22 | 22 |
23 class GrBinHashKeyBuilder; | |
24 class GrGLEffect; | 23 class GrGLEffect; |
25 class GrGLProgramEffects; | 24 class GrGLProgramEffects; |
26 class GrGLShaderBuilder; | 25 class GrGLShaderBuilder; |
27 | 26 |
28 /** | 27 /** |
29 * This class manages a GPU program and records per-program information. | 28 * This class manages a GPU program and records per-program information. |
30 * We can specify the attribute locations so that they are constant | 29 * We can specify the attribute locations so that they are constant |
31 * across our shaders. But the driver determines the uniform locations | 30 * across our shaders. But the driver determines the uniform locations |
32 * at link time. We don't need to remember the sampler uniform location | 31 * at link time. We don't need to remember the sampler uniform location |
33 * because we will bind a texture slot to it and never change it | 32 * because we will bind a texture slot to it and never change it |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 | 192 |
194 GrGLProgramDesc fDesc; | 193 GrGLProgramDesc fDesc; |
195 GrGpuGL* fGpu; | 194 GrGpuGL* fGpu; |
196 | 195 |
197 SkAutoTUnref<GrGLUniformManager> fUniformManager; | 196 SkAutoTUnref<GrGLUniformManager> fUniformManager; |
198 | 197 |
199 typedef SkRefCnt INHERITED; | 198 typedef SkRefCnt INHERITED; |
200 }; | 199 }; |
201 | 200 |
202 #endif | 201 #endif |
OLD | NEW |