OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 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 GrProgramDesc_DEFINED | 8 #ifndef GrProgramDesc_DEFINED |
9 #define GrProgramDesc_DEFINED | 9 #define GrProgramDesc_DEFINED |
10 | 10 |
11 #include "GrBackendProcessorFactory.h" | |
12 #include "GrColor.h" | 11 #include "GrColor.h" |
13 #include "GrTypesPriv.h" | 12 #include "GrTypesPriv.h" |
14 #include "SkChecksum.h" | 13 #include "SkChecksum.h" |
15 | 14 |
16 class GrGpuGL; | 15 class GrGpuGL; |
17 | 16 |
18 /** This class describes a program to generate. It also serves as a program cach
e key. Very little | 17 /** This class describes a program to generate. It also serves as a program cach
e key. Very little |
19 of this is GL-specific. The GL-specific parts could be factored out into a s
ubclass. */ | 18 of this is GL-specific. The GL-specific parts could be factored out into a s
ubclass. */ |
20 class GrProgramDesc { | 19 class GrProgramDesc { |
21 public: | 20 public: |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 kPreAllocSize = kHeaderOffset + kHeaderSize + | 207 kPreAllocSize = kHeaderOffset + kHeaderSize + |
209 kMaxPreallocProcessors * sizeof(uint32_t) * kIntsPerProc
essor, | 208 kMaxPreallocProcessors * sizeof(uint32_t) * kIntsPerProc
essor, |
210 }; | 209 }; |
211 | 210 |
212 SkSTArray<kPreAllocSize, uint8_t, true> fKey; | 211 SkSTArray<kPreAllocSize, uint8_t, true> fKey; |
213 | 212 |
214 friend class GrGLProgramDescBuilder; | 213 friend class GrGLProgramDescBuilder; |
215 }; | 214 }; |
216 | 215 |
217 #endif | 216 #endif |
OLD | NEW |