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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 const GrTexture* dstTexture = random.nextBool() ? dummyTextures[0] : dum
myTextures[1]; | 179 const GrTexture* dstTexture = random.nextBool() ? dummyTextures[0] : dum
myTextures[1]; |
180 pdesc.setRandom(&random, | 180 pdesc.setRandom(&random, |
181 this, | 181 this, |
182 dummyTextures[0]->asRenderTarget(), | 182 dummyTextures[0]->asRenderTarget(), |
183 dstTexture, | 183 dstTexture, |
184 stages.get(), | 184 stages.get(), |
185 numColorStages, | 185 numColorStages, |
186 numCoverageStages, | 186 numCoverageStages, |
187 currAttribIndex); | 187 currAttribIndex); |
188 | 188 |
189 SkAutoTUnref<GrGLProgram> program(GrGLProgram::Create(this->glContext(), | 189 SkAutoTUnref<GrGLProgram> program(GrGLProgram::Create(this, |
190 pdesc, | 190 pdesc, |
191 stages, | 191 stages, |
192 stages + numColorS
tages)); | 192 stages + numColorS
tages)); |
193 for (int s = 0; s < numStages; ++s) { | 193 for (int s = 0; s < numStages; ++s) { |
194 SkDELETE(stages[s]); | 194 SkDELETE(stages[s]); |
195 } | 195 } |
196 if (NULL == program.get()) { | 196 if (NULL == program.get()) { |
197 return false; | 197 return false; |
198 } | 198 } |
199 } | 199 } |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 SkMagnifierImageFilter mag(SkRect::MakeWH(SK_Scalar1, SK_Scalar1), SK_Scalar
1); | 236 SkMagnifierImageFilter mag(SkRect::MakeWH(SK_Scalar1, SK_Scalar1), SK_Scalar
1); |
237 GrConfigConversionEffect::Create(NULL, | 237 GrConfigConversionEffect::Create(NULL, |
238 false, | 238 false, |
239 GrConfigConversionEffect::kNone_PMConversio
n, | 239 GrConfigConversionEffect::kNone_PMConversio
n, |
240 SkMatrix::I()); | 240 SkMatrix::I()); |
241 SkScalar matrix[20]; | 241 SkScalar matrix[20]; |
242 SkColorMatrixFilter cmf(matrix); | 242 SkColorMatrixFilter cmf(matrix); |
243 } | 243 } |
244 | 244 |
245 #endif | 245 #endif |
OLD | NEW |