OLD | NEW |
---|---|
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 Google Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 // This is a GPU-backend specific test. It relies on static intializers to work | 9 // This is a GPU-backend specific test. It relies on static intializers to work |
10 | 10 |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
148 if (t == stop) { | 148 if (t == stop) { |
149 int breakpointhere = 9; | 149 int breakpointhere = 9; |
150 } | 150 } |
151 #endif | 151 #endif |
152 | 152 |
153 GrGLProgramDesc pdesc; | 153 GrGLProgramDesc pdesc; |
154 | 154 |
155 int currAttribIndex = 1; // we need to always leave room for position | 155 int currAttribIndex = 1; // we need to always leave room for position |
156 int currTextureCoordSet = 0; | 156 int currTextureCoordSet = 0; |
157 int attribIndices[2]; | 157 int attribIndices[2]; |
158 attribIndices[0] = 0; | |
bsalomon
2014/02/21 19:00:28
lgtm, but maybe:
int attribIndices[] = {0, 0};
?
scroggo
2014/02/21 19:08:55
Done.
| |
159 attribIndices[1] = 0; | |
158 GrTexture* dummyTextures[] = {dummyTexture1.get(), dummyTexture2.get()}; | 160 GrTexture* dummyTextures[] = {dummyTexture1.get(), dummyTexture2.get()}; |
159 | 161 |
160 int numStages = random.nextULessThan(maxStages + 1); | 162 int numStages = random.nextULessThan(maxStages + 1); |
161 int numColorStages = random.nextULessThan(numStages + 1); | 163 int numColorStages = random.nextULessThan(numStages + 1); |
162 int numCoverageStages = numStages - numColorStages; | 164 int numCoverageStages = numStages - numColorStages; |
163 | 165 |
164 SkAutoSTMalloc<8, const GrEffectStage*> stages(numStages); | 166 SkAutoSTMalloc<8, const GrEffectStage*> stages(numStages); |
165 | 167 |
166 bool useFixedFunctionTexturing = this->shouldUseFixedFunctionTexturing() ; | 168 bool useFixedFunctionTexturing = this->shouldUseFixedFunctionTexturing() ; |
167 | 169 |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
260 SkMagnifierImageFilter mag(SkRect::MakeWH(SK_Scalar1, SK_Scalar1), SK_Scalar 1); | 262 SkMagnifierImageFilter mag(SkRect::MakeWH(SK_Scalar1, SK_Scalar1), SK_Scalar 1); |
261 GrConfigConversionEffect::Create(NULL, | 263 GrConfigConversionEffect::Create(NULL, |
262 false, | 264 false, |
263 GrConfigConversionEffect::kNone_PMConversio n, | 265 GrConfigConversionEffect::kNone_PMConversio n, |
264 SkMatrix::I()); | 266 SkMatrix::I()); |
265 SkScalar matrix[20]; | 267 SkScalar matrix[20]; |
266 SkColorMatrixFilter cmf(matrix); | 268 SkColorMatrixFilter cmf(matrix); |
267 } | 269 } |
268 | 270 |
269 #endif | 271 #endif |
OLD | NEW |