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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 kPreAllocSize = kHeaderOffset + kHeaderSize + | 196 kPreAllocSize = kHeaderOffset + kHeaderSize + |
198 kMaxPreallocProcessors * sizeof(uint32_t) * kIntsPerProc
essor, | 197 kMaxPreallocProcessors * sizeof(uint32_t) * kIntsPerProc
essor, |
199 }; | 198 }; |
200 | 199 |
201 SkSTArray<kPreAllocSize, uint8_t, true> fKey; | 200 SkSTArray<kPreAllocSize, uint8_t, true> fKey; |
202 | 201 |
203 friend class GrGLProgramDescBuilder; | 202 friend class GrGLProgramDescBuilder; |
204 }; | 203 }; |
205 | 204 |
206 #endif | 205 #endif |
OLD | NEW |