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 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 GrGLProgramDataManager(GrGLGpu*, GrGLuint programID, const UniformInfoArray&
, | 47 GrGLProgramDataManager(GrGLGpu*, GrGLuint programID, const UniformInfoArray&
, |
48 const VaryingInfoArray&); | 48 const VaryingInfoArray&); |
49 | 49 |
50 | 50 |
51 void setSamplers(const SkTArray<GrGLSampler>& samplers) const; | 51 void setSamplers(const SkTArray<GrGLSampler>& samplers) const; |
52 | 52 |
53 /** Functions for uploading uniform values. The varities ending in v can be
used to upload to an | 53 /** Functions for uploading uniform values. The varities ending in v can be
used to upload to an |
54 * array of uniforms. arrayCount must be <= the array count of the uniform. | 54 * array of uniforms. arrayCount must be <= the array count of the uniform. |
55 */ | 55 */ |
56 void set1i(UniformHandle, int32_t) const override; | 56 void set1i(UniformHandle, int32_t) const override; |
| 57 void set1iv(UniformHandle, int arrayCount, const int v[]) const override; |
57 void set1f(UniformHandle, float v0) const override; | 58 void set1f(UniformHandle, float v0) const override; |
58 void set1fv(UniformHandle, int arrayCount, const float v[]) const override; | 59 void set1fv(UniformHandle, int arrayCount, const float v[]) const override; |
59 void set2f(UniformHandle, float, float) const override; | 60 void set2f(UniformHandle, float, float) const override; |
60 void set2fv(UniformHandle, int arrayCount, const float v[]) const override; | 61 void set2fv(UniformHandle, int arrayCount, const float v[]) const override; |
61 void set3f(UniformHandle, float, float, float) const override; | 62 void set3f(UniformHandle, float, float, float) const override; |
62 void set3fv(UniformHandle, int arrayCount, const float v[]) const override; | 63 void set3fv(UniformHandle, int arrayCount, const float v[]) const override; |
63 void set4f(UniformHandle, float, float, float, float) const override; | 64 void set4f(UniformHandle, float, float, float, float) const override; |
64 void set4fv(UniformHandle, int arrayCount, const float v[]) const override; | 65 void set4fv(UniformHandle, int arrayCount, const float v[]) const override; |
65 // matrices are column-major, the first three upload a single matrix, the la
tter three upload | 66 // matrices are column-major, the first three upload a single matrix, the la
tter three upload |
66 // arrayCount matrices into a uniform array. | 67 // arrayCount matrices into a uniform array. |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 | 108 |
108 SkTArray<Uniform, true> fUniforms; | 109 SkTArray<Uniform, true> fUniforms; |
109 SkTArray<PathProcVarying, true> fPathProcVaryings; | 110 SkTArray<PathProcVarying, true> fPathProcVaryings; |
110 GrGLGpu* fGpu; | 111 GrGLGpu* fGpu; |
111 GrGLuint fProgramID; | 112 GrGLuint fProgramID; |
112 | 113 |
113 typedef GrGLSLProgramDataManager INHERITED; | 114 typedef GrGLSLProgramDataManager INHERITED; |
114 }; | 115 }; |
115 | 116 |
116 #endif | 117 #endif |
OLD | NEW |