OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 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 GrGLProgramDataManager_DEFINED | 8 #ifndef GrGLProgramDataManager_DEFINED |
9 #define GrGLProgramDataManager_DEFINED | 9 #define GrGLProgramDataManager_DEFINED |
10 | 10 |
11 #include "glsl/GrGLSLProgramDataManager.h" | 11 #include "glsl/GrGLSLProgramDataManager.h" |
12 | 12 |
13 #include "GrAllocator.h" | 13 #include "GrAllocator.h" |
14 #include "gl/GrGLTypes.h" | 14 #include "gl/GrGLTypes.h" |
15 #include "glsl/GrGLSLShaderVar.h" | 15 #include "glsl/GrGLSLShaderVar.h" |
16 | 16 |
17 #include "SkTArray.h" | 17 #include "SkTArray.h" |
18 | 18 |
19 class GrGLGpu; | 19 class GrGLGpu; |
20 class SkMatrix; | 20 class SkMatrix; |
21 class GrGLProgram; | 21 class GrGLProgram; |
22 class GrGLProgramBuilder; | |
23 | 22 |
24 /** Manages the resources used by a shader program. | 23 /** Manages the resources used by a shader program. |
25 * The resources are objects the program uses to communicate with the | 24 * The resources are objects the program uses to communicate with the |
26 * application code. | 25 * application code. |
27 */ | 26 */ |
28 class GrGLProgramDataManager : public GrGLSLProgramDataManager { | 27 class GrGLProgramDataManager : public GrGLSLProgramDataManager { |
29 public: | 28 public: |
30 struct UniformInfo { | 29 struct UniformInfo { |
31 GrGLSLShaderVar fVariable; | 30 GrGLSLShaderVar fVariable; |
32 uint32_t fVisibility; | 31 uint32_t fVisibility; |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 | 102 |
104 SkTArray<Uniform, true> fUniforms; | 103 SkTArray<Uniform, true> fUniforms; |
105 SkTArray<PathProcVarying, true> fPathProcVaryings; | 104 SkTArray<PathProcVarying, true> fPathProcVaryings; |
106 GrGLGpu* fGpu; | 105 GrGLGpu* fGpu; |
107 GrGLuint fProgramID; | 106 GrGLuint fProgramID; |
108 | 107 |
109 typedef GrGLSLProgramDataManager INHERITED; | 108 typedef GrGLSLProgramDataManager INHERITED; |
110 }; | 109 }; |
111 | 110 |
112 #endif | 111 #endif |
OLD | NEW |