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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 | 99 |
100 struct Uniform { | 100 struct Uniform { |
101 GrGLint fVSLocation; | 101 GrGLint fVSLocation; |
102 GrGLint fFSLocation; | 102 GrGLint fFSLocation; |
103 SkDEBUGCODE( | 103 SkDEBUGCODE( |
104 GrSLType fType; | 104 GrSLType fType; |
105 int fArrayCount; | 105 int fArrayCount; |
106 ); | 106 ); |
107 }; | 107 }; |
108 | 108 |
109 #ifdef SK_DEBUG | 109 SkDEBUGCODE(void printUnused(const Uniform&) const;) |
110 void printUnused(const Uniform&) const; | |
111 #else | |
112 void printUnused(const Uniform&) const {} | |
113 #endif | |
114 | 110 |
115 SkTArray<Uniform, true> fUniforms; | 111 SkTArray<Uniform, true> fUniforms; |
116 GrGLGpu* fGpu; | 112 GrGLGpu* fGpu; |
117 | 113 |
118 typedef SkRefCnt INHERITED; | 114 typedef SkRefCnt INHERITED; |
119 }; | 115 }; |
120 #endif | 116 #endif |
OLD | NEW |