OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2016 Google Inc. | 2 * Copyright 2016 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 GrVkProgramDataManager_DEFINED | 8 #ifndef GrVkProgramDataManager_DEFINED |
9 #define GrVkProgramDataManager_DEFINED | 9 #define GrVkProgramDataManager_DEFINED |
10 | 10 |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 SkDEBUGCODE( | 56 SkDEBUGCODE( |
57 GrSLType fType; | 57 GrSLType fType; |
58 int fArrayCount; | 58 int fArrayCount; |
59 uint32_t fSetNumber; | 59 uint32_t fSetNumber; |
60 ); | 60 ); |
61 }; | 61 }; |
62 | 62 |
63 template<int N> inline void setMatrices(UniformHandle, int arrayCount, | 63 template<int N> inline void setMatrices(UniformHandle, int arrayCount, |
64 const float matrices[]) const; | 64 const float matrices[]) const; |
65 | 65 |
| 66 void* getBufferPtrAndMarkDirty(const Uniform& uni) const; |
| 67 |
66 uint32_t fVertexUniformSize; | 68 uint32_t fVertexUniformSize; |
67 uint32_t fFragmentUniformSize; | 69 uint32_t fFragmentUniformSize; |
68 | 70 |
69 SkTArray<Uniform, true> fUniforms; | 71 SkTArray<Uniform, true> fUniforms; |
70 | 72 |
71 mutable SkAutoMalloc fVertexUniformData; | 73 mutable SkAutoMalloc fVertexUniformData; |
72 mutable SkAutoMalloc fFragmentUniformData; | 74 mutable SkAutoMalloc fFragmentUniformData; |
| 75 mutable bool fVertexUniformsDirty; |
| 76 mutable bool fFragmentUniformsDirty; |
73 }; | 77 }; |
74 | 78 |
75 #endif | 79 #endif |
OLD | NEW |